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 1 year, 11 months ago.

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

    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?




    Sridhar Katakam

    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.


    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.