Generate Theme Optin Box

Community Forums Forums Design Tips and Tricks Generate Theme Optin Box

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  michaelwilding 11 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #67460

    michaelwilding
    Member
    Post count: 13

    I’m trying to get the optin box shown above the content on the homepage of the generate theme to always display, can anybody point me in what I need to edit in the code to do this?

    Thanks

    Michael

    #67586

    Sridhar Katakam
    Participant
    Post count: 1019

    In home.php, cut

    /** Add Generate Box after header **/
    add_action( 'genesis_after_header', 'generate_box', 10 );
    function generate_box() {
    
    	if ( is_active_sidebar( 'generate-box' ) ) {
    		echo '<div id="generate-box"><div class="wrap">';
    		dynamic_sidebar( 'generate-box' );
    		echo '</div><!-- end .wrap --></div><!-- end #generate-box -->';
    	}
    
    }

    and paste it at the end in functions.php.


    #67624

    michaelwilding
    Member
    Post count: 13

    Brilliant, thank you very much Sridhar.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.