Generate box

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  jimmyc 12 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10816

    jimmyc
    Participant
    Post count: 27

    Hi,

    Generate theme :

    The generate box is only visible on the home page. I would really like to adjust it so that it remains visible always. Doesn’t matter on which page, the box would be always visible.

    Can someone tell me how i can fix this in the files?

    Regards,

    Jim

    #10839

    Brian Bourn
    Participant
    Post count: 96

    If remove the following from your home.php file and add it to your functions.php it will show up everywhere like you want.

    /** 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 -->';
    	}
    
    }

    Bourn Creative | bourncreative.com | Twitter

    #10886

    jimmyc
    Participant
    Post count: 27

    Awesome! Thank you very much.

    #37107

    jimmyc
    Participant
    Post count: 27

    Hi,

    I’ve done this but i see the box wil only show up on all the pages. Not posts.

    What can i do about this?

    Best regards,

    Jim

    #37109

    jimmyc
    Participant
    Post count: 27

    I’ve got it already. Thank you

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

You must be logged in to reply to this topic.