• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Simple Hooks Home Page Generate Box Help Please

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Simple Hooks Home Page Generate Box Help Please

This topic is: not resolved

Tagged: generate box, genesis_after_header hook, lead capture box, Simple Hooks

  • This topic has 9 replies, 2 voices, and was last updated 12 years, 2 months ago by AnitaC.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • March 9, 2013 at 6:14 am #25169
    julesonline
    Member

    Hi 🙂

    To add in a custom lead capture box to the Generate theme I used the Simple Hooks plugin instead of the "Generate Box Widget" - genesis_after_header Hook.

    The form sits perfectly on the Home Page however it is also showing on every page. How do I stop it showing on all pages please as only wish to have it on the Home page of the website.

    Thank you so much

    Jules 🙂

     

     

    March 9, 2013 at 6:17 am #25171
    AnitaC
    Keymaster

    You need to add a conditional tag to tell it "home only" in your code.

    <tt><span class="external text">is_home()</span></tt> 

    Need help with customization or troubleshooting? Reach out to me.

    March 9, 2013 at 6:47 am #25173
    julesonline
    Member

    Hi Anitac

    Thank you, where abouts do i put this code piece please? I just tried to add it into the simple hooks box with the lead capture code but it didn't work, so guessing I placed it into the wrong area. I also have both boxes ticked within the simple hooks area.

     

    March 9, 2013 at 12:45 pm #25202
    AnitaC
    Keymaster

    I would need to see your actual code that you put inside the Hook to determine where you need it.


    Need help with customization or troubleshooting? Reach out to me.

    March 9, 2013 at 3:06 pm #25215
    julesonline
    Member

    Hi Anitac

    Ok thank you 🙂 second try at posting it in and i have broken urls up /changed the site name on purpose.

    <div style="background:url(http :// the webiste .com/wp-content/uploads/2013/03/top-form1.jpg); width:959px; height:255px; margin-left:auto; margin-right:auto;">
    <form action="http:// www. aweber.com/scripts/addlead.pl" method="post" style="padding:0px; margin:0px;">
    <input name="meta_web_form_id" value="1837090802" type="hidden"><input name="meta_split_id" value="" type="hidden">
    <input name="unit" value="listname" type="hidden"><input name="redirect" value="redirect_e02e1225bc9b89cf22209ebfa0d62702" type="hidden">
    <input name="meta_adtracking" value="adtrackid" type="hidden"><input name="meta_message" value="1" type="hidden">
    <input name="meta_required" value="name,email" type="hidden"/>
    <input type="hidden" name="meta_tooltip" value="" />
    <div style="width:280px; float:right; padding-top:102px; padding-right:13px;">
    <div style="width:260px; float:right; padding-right:10px;">
    <label style="padding:0px; margin:0px; float:left; width:260px;">
    <input name="name" type="text" id="name" style=" width:260px; height:22px; margin-top:0px; margin-bottom:2px; float:left;" value="Name" onFocus="if(this.value==this.defaultValue)this.value='';" onBlur="if(this.value=='')this.value=this.defaultValue;" />
    </label>

    <label style="padding:0px; margin:0px; float:left; width:260px;">
    <input name="email" type="text" id="email" style="width:242px; height:12px; margin-left:0px; margin-top:4px; margin-bottom:4px; float:left;" value="Email" onFocus="if(this.value==this.defaultValue)this.value='';" onBlur="if(this.value=='')this.value=this.defaultValue;" /> </label>

    </div>
    <div style="width:280px; float:right; padding-top:5px;"><input name="" type="image" src="http: // the website .com/wp-content/uploads/2013/03/do-it-btn.png" /></div>
    </div>
    </form>
    </div>

    March 11, 2013 at 6:13 am #25446
    julesonline
    Member

    Hi All

    Sorry to bump however still lost as to where to place the extra tag line. Would anyone know please where the tag needs to be placed in my code that Anitac has specified for me to do?

    Have a great day!

    Thank you

    Regards Julie 🙂

    March 11, 2013 at 10:25 pm #25582
    julesonline
    Member

    Still hoping to get some help here please. Thank you so much.
    Regards

    Julie

    March 12, 2013 at 1:14 am #25615
    AnitaC
    Keymaster

    Please share a link to you website so I can take a look. That code you provided is not what goes in the hook area.


    Need help with customization or troubleshooting? Reach out to me.

    March 12, 2013 at 7:55 am #25638
    julesonline
    Member

    Hi Anitac

    Thank you so much for coming back and responding. I worked out the code should of just gone in a text box placed into the Generate widget and with fiddling of the template code was able to have the lead box placed in the area the default generate box sat.

    Have an awesome day Anitac

    Regards

    Julie 🙂

    March 12, 2013 at 10:59 am #25663
    AnitaC
    Keymaster

    Thanks, glad you got it figured out.


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble