• 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

Add Optin above Widgetized Footer

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 › Add Optin above Widgetized Footer

This topic is: not resolved
  • This topic has 9 replies, 2 voices, and was last updated 13 years, 4 months ago by SoZo.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • February 4, 2013 at 8:14 am #17830
    PainterMommy
    Member

    I have created an optin for a client and added it above the footer using the Genesis Simple Hooks plugin, but the client now wants the optin to be above the widgetized footer instead.  How would I accomplish that?  The site is http://www.soulfitwomen.com

    Thanks so much!

    DAWN

    February 4, 2013 at 9:17 am #17851
    SoZo
    Member

    You could try the after_content_sidbear hook.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    February 4, 2013 at 9:31 am #17864
    PainterMommy
    Member

    I appreciate you getting back to me.  The only one I see is "genesis_after_content_sidebar_wrap " and that one doesn't do it.  It then gets pushed up behind the video.

    This is the code I am working with:

    <br>
    <div style="height: 120px; background:url(http://www.soulfitwomen.com/wp-content/uploads/2013/02/wide_optin_back_small.png) no-repeat center top;">
    <form  action="https://app.getresponse.com/add_contact_webform.html"
    method="post">
    <table style="margin-left:450px;" cellpadding="0" cellspacing="0"  border="0"><tr>
    <td align="top" style="padding-right:10px;"><input type="text" value="Name" name="name"></td>
    <td align="top" style="padding-right:10px;"><input type="text" value="Email" name="email"></td>
    <td align="top"><input type="image" src="http://www.soulfitwomen.com/wp-content/uploads/2013/02/submit_circle_small.png" background="none" WIDTH="101"  HEIGHT="100" border="0"
    name="submit"></td>
    </tr></table>
    <input type="hidden" name="webform_id" value="340984">
    </form>
    </div>
    <script type="text/javascript" src="http://app.getresponse.com/view_webform.js?wid=340984&mg_param1=1"></script>

    February 4, 2013 at 9:34 am #17867
    SoZo
    Member

    Ok, since you can't do priority numbers in simple hooks you'll need to add a function to the functions file using the before_footer hook with a priority number so it outputs before the footer widgets.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    February 4, 2013 at 9:45 am #17870
    PainterMommy
    Member

    Can you tell me the specific code I should add?  I am still a novice when it comes to this stuff.  I appreciate it so much.

    February 4, 2013 at 9:50 am #17872
    SoZo
    Member

    The intro to hooks shows what a function looks like and you can learn about the add_action parameters here.

    You'd want something like

    add_action('genesis_before_footer', 'add_div', 5 );
    function add_div() {
    THE STUFF YOU WANT TO OUTPUT
    }

    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    February 4, 2013 at 9:57 am #17876
    PainterMommy
    Member

    OK, so I added this to the functions.php and it broke the site:

     

    /** Add Wide Optin above Footer Widgets*/
    add_action('genesis_before_footer', 'add_div', 5 );
    function add_div() {
    <div style="height: 120px; background:url(http://www.soulfitwomen.com/wp-content/uploads/2013/02/wide_optin_back_small.png) no-repeat center top;">
    <form  action="https://app.getresponse.com/add_contact_webform.html"
    method="post">
    <table style="margin-left:450px;" cellpadding="0" cellspacing="0"  border="0"><tr>
    <td align="top" style="padding-right:10px;"><input type="text" value="Name" name="name"></td>
    <td align="top" style="padding-right:10px;"><input type="text" value="Email" name="email"></td>
    <td align="top"><input type="image" src="http://www.soulfitwomen.com/wp-content/uploads/2013/02/submit_circle_small.png" background="none" WIDTH="101"  HEIGHT="100" border="0"
    name="submit"></td>
    </tr></table>
    <input type="hidden" name="webform_id" value="340984">
    </form>
    </div>
    <script type="text/javascript" src="http://app.getresponse.com/view_webform.js?wid=340984&mg_param1=1"></script>
    }

     

    I fixed via FTP, but I am thinking my code is not correct?

    February 4, 2013 at 10:09 am #17890
    SoZo
    Member

    Ya, you threw HTML into PHP. You need to break out of PHP first. See the difference between this and what I posted above

    add_action('genesis_before_footer', 'add_div', 5 );
    function add_div() { ?>
    THE STUFF YOU WANT TO OUTPUT
    <?php }

    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    February 4, 2013 at 10:27 am #17898
    PainterMommy
    Member

    It worked!  It worked!  Thankyou so much!

    February 4, 2013 at 10:28 am #17899
    SoZo
    Member

    You're welcome 🙂


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add Optin above Widgetized Footer’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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