• 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

Optin area at the top of page on Eleven 40 theme possible?

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 › Optin area at the top of page on Eleven 40 theme possible?

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by nunotmp.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 19, 2014 at 7:21 am #132113
    blueclcl
    Member

    How easy is it to have an opt in area with text at the top of my page on the eleven 40 theme?

    Something similar to the below sites:

    http://boostblogtraffic.com
    http://viverdeblog.com/

    Is this something I could do ( Not very clued up with css )

    or do I need to pay someone?

    Thanks for your advice!

    Colin

    November 19, 2014 at 11:22 am #132156
    nunotmp
    Member

    Adding an area below the header is not to difficult but having the the area display like the examples could take quite a bit of CSS. Would you like for me show you how to add the widget area?


    Genesis Child Themes – Follow Me

    November 19, 2014 at 1:59 pm #132173
    blueclcl
    Member

    Yes if you don't mind..

    Thanks

    November 19, 2014 at 2:12 pm #132179
    nunotmp
    Member

    First you have to add the widget with this.

    
    genesis_register_sidebar( array(
    	'id'          => 'opt-in',
    	'name'        => 'Opt in',
    	'description' => 'This is the Opt in widget area.',
    ) );
    

    You then need to create a function to house the widget area to display on the front it. Something like this will work.

    
    function opt_in_area() {
    	genesis_widget_area( 'opt-in', array(
    		'before' => '<section class="opt-in-area"><div class="wrap">',
    		'after'  => '</div></section>',
    	) );
    }
    

    Once that is in place you just need to hook it to where you want it to display. If you want a full width area then hook it to genesis_after_header so this will work.
    add_action( 'genesis_after_header', 'opt_in_area' );

    You would then have to use widgets or HTML code in a text widget to markup and you can add styling to the area by targeting

    .opt-in-area{  
    //css goes here
    }

    Genesis Child Themes – Follow Me

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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