Enterprise Theme – Have banner on all page

Community Forums Forums Design Tips and Tricks Enterprise Theme – Have banner on all page

This topic is: not resolved

This topic contains 2 replies, has 3 voices, and was last updated by  Sridhar Katakam 10 months, 2 weeks ago.

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

    suffetyb
    Member
    Post count: 2

    On the posts page of the enterprise theme is a banner area with a rotating image. It’s set up using a widget. What do I have to do to make that banner section show up on every page?

    • This topic was modified 10 months, 2 weeks ago by  suffetyb.
    • This topic was modified 10 months, 2 weeks ago by  suffetyb.
    #77836

    nutsandbolts
    Moderator
    Post count: 3166

    Can you post a link to your site? It’s always easier to help when we can see what you see and take a look at what you’ve got in place.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #77861

    Sridhar Katakam
    Participant
    Post count: 1050

    Cut

    add_action( 'genesis_after_header', 'enterprise_home_top_helper' );
    /**
     * Conditionally add Home Top #1 (home-top-1) sidebar and WP-Cycle.
     */
    function enterprise_home_top_helper() {
    
    	echo '<div id="home-top-bg"><div id="home-top"><div class ="wrap">';
    
    	genesis_widget_area( 'home-top-1', array(
    		'before' => '<div class="home-top-1">',
    	) );
    
    	if ( is_active_sidebar( 'home-top-2' ) ) {
    	
    		genesis_widget_area( 'home-top-2', array(
    			'before' => '<div class="home-top-2">',
    		) );
    		
    	} elseif( function_exists('wp_cycle') ) {
    
    		echo '<div class="home-top-2">';
    		wp_cycle();
    		echo '</div><!-- end .home-top-2 -->';
    		
    	}
    	
    	echo '</div><!-- end .wrap --></div><!-- end #home-top --></div><!-- end #home-top-bg -->';
    
    }

    from home.php and paste at the end of functions.php.


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

You must be logged in to reply to this topic.