Minimum Pro Widget Area

Community Forums Forums Design Tips and Tricks Minimum Pro Widget Area

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Sridhar Katakam 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #67604

    keylimedigitaldesigns@gmail.com
    Participant
    Post count: 28

    Hi!
    I am using the minimum pro theme.
    I placed a slider in the widget in the ‘site tageline right’ widget area.
    (I made the widget area 1140px instead of being 570px)

    Anyways my question is that I don’t want that widget area to show on any page but the front page.
    Is there a way to change that?
    Thanks!

    Kendra

    http://www.client4.keylimedigitaldesigns.com/blog-test/
    #67625

    Sridhar Katakam
    Participant
    Post count: 1013

    In functions.php wrap the content of minimum_site_tagline function with a if condition like this:

    //* Add the site tagline section
    add_action( 'genesis_after_header', 'minimum_site_tagline' );
    function minimum_site_tagline() {
    
    	if ( is_home() || is_front_page() ) {
    		printf( '<div %s>', genesis_attr( 'site-tagline' ) );
    		genesis_structural_wrap( 'site-tagline' );
    
    			printf( '<div %s>', genesis_attr( 'site-tagline-left' ) );
    			printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) );
    			echo '</div>';
    
    			printf( '<div %s>', genesis_attr( 'site-tagline-right' ) );
    			genesis_widget_area( 'site-tagline-right' );
    			echo '</div>';
    
    		genesis_structural_wrap( 'site-tagline', 'close' );
    		echo '</div>';
    	}
    
    }

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

You must be logged in to reply to this topic.