• If this (code in my header) returns the tagline for all of my pages, how do I return a different tagline for a custom page?

    // Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";

    and later

    <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can try doing something like this based on the id of your custom page to your code above. Hope this helps.

    // Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) ) {
    		echo " | $site_description";
    		} elseif ( is_page('page-id') ) {
    		echo "Alternatate Description For Custom Page here";
    		}
    Thread Starter Robert

    (@robbieb1953)

    Hi Will,

    Thanks for the suggestion. I put the page id like this:

    } elseif ( is_page(993) ) {
    		echo "Alternate Description For Custom Page here";
    		}

    But it breaks the site…

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

The topic ‘site tagline’ is closed to new replies.