• 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 Box over Minimum Pro Front Page Image

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 › General Discussion › Add Optin Box over Minimum Pro Front Page Image

This topic is: not resolved

Tagged: minimum pro, optin box, widget area

  • This topic has 6 replies, 4 voices, and was last updated 12 years, 2 months ago by [email protected].
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • September 1, 2013 at 8:39 am #60050
    jonbrantingham
    Participant

    I am attempting to add an optin box widget over the front page image in Minimum Pro (3.0), but I am failing. If someone can please help, I would appreciate it. So far, I have the following in my functions.php.

    `genesis_register_sidebar( array(
        'id'    => 'home-optin',
        'name'  => __( 'Home Page Optin', 'minimum' ),
        'description'   => __( 'An optin box for the featured image', 'minimum' ),
    ) );`

    So far this has created the widget in the widget menu, but I am not sure how to place it on the page.

    It is different from the old Minimum theme because backstretch.js is used. I do not know how to code in php.

    I am doing this on a dev site locally hosted on my computer, so the link to my website is not Minimum Pro, it is the old minimum website.

    http://www.artofcomposing.com
    September 1, 2013 at 8:56 am #60055
    Sridhar Katakam
    Participant

    Do you want to place the widget ABOVE the background image or OVER it (i.e., with the image as its background)?


    Genesis Tutorials | Follow me on Twitter

    September 1, 2013 at 1:47 pm #60078
    jonbrantingham
    Participant

    I want to place the optin box over it with the image as the background.

    September 1, 2013 at 4:53 pm #60115
    Brad
    Member

    You would keep the code you wrote in the functions file. I added the following code to my Minimum Pro theme. I placed the code in the front-page.php file. You would substitute "home-optin" for "home-top-full" below.

    
    //* Add widget area to front page
    add_action( 'genesis_after_header', 'minimum_home_top', 15 );
    function minimum_home_top() {
    
    	printf( '<div %s>', genesis_attr( 'home-top' ) );
    	genesis_structural_wrap( 'home-top' );
    
    		genesis_widget_area( 'home-top-full', array(
    			'before'=> '<div class="home-top-full widget-area">',
    			'after'	=> '</div>',
    		) );
    
    	genesis_structural_wrap( 'home-top', 'close' );
    	echo '</div>'; //* end .home-top
    
    }
    

    In your style sheet you would add styles to .home-top

    September 1, 2013 at 7:27 pm #60168
    Sridhar Katakam
    Participant

    More detailed article by Brad on this here: http://bradpotter.com/how-to-add-a-home-top-widgetized-area-to-the-minimum-pro-theme/


    Genesis Tutorials | Follow me on Twitter

    September 2, 2013 at 8:21 am #60246
    jonbrantingham
    Participant

    Thanks. That blog post worked perfectly.

    October 3, 2013 at 7:31 am #65198
    [email protected]
    Member

    Hi - I'm not sure if I should start a new post, but I used these instructions, thank you - they worked great!! My only question is --- is there a way to make the new widget area resize or be responsive on smaller screens and mobile devices? I'm working on a demo site at http://74.53.76.128/~hillside/

    Thanks!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ 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