Removing Minimum Pro Site Tagline from Several Pages

Community Forums Forums General Discussion Removing Minimum Pro Site Tagline from Several Pages

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 8 months ago.

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

    Jami Howard Mays
    Participant
    Post count: 44

    I’ve found via the forums how to remove the tagline from one page, but I’m trying to remove it from four pages.

    I’m using:

    //* Add the site tagline section
    add_action( 'genesis_after_header', 'minimum_site_tagline' );
    function minimum_site_tagline() {
    	if (!is_page('55, 56, 57, 59')) {
    		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>';
    	}
    }

    I’m familiar with the CSS needed to bring the wrap down on these pages, but it’s only removing it from page-id 55 – I feel like I’m having a total brainfart trying to remove it from more than one page (a whole series of parent pages + child pages).

    Thanks in advance.


    Jami Howard Mays, HBIC, Imaj Works | Athens, Georgia

    http://mamasboyathens.com/preview
    #74682

    braddalton
    Participant
    Post count: 8804

    Change this line from this:
    [php]
    if (!is_page(’55, 56, 57, 59′)) {
    [/php]

    To this:
    [php]
    if (!is_page(array(55, 56, 57, 59))) {
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.