• Hi. Is there a way of not showing the tagline (#site description) from pages other than the home page? I like it on the Home page but I don’t need it anywhere else.

    Cheers for a top theme too!

    Andy

Viewing 4 replies - 1 through 4 (of 4 total)
  • Edit your child theme header.php

    <?php    if (  is_front_page()) { ?>
    <h2 id="site-description"<?php echo $space_class; ?>>
    <?php bloginfo( 'description' ); ?>
    <?php } ?>

    I forgot the closing </h2>before the closing <?php }?>

    Thread Starter Andy Woggle

    (@andy-woggle)

    Hi. Thanks for the response. Unfortunately it didn’t work, that removed the jumbotron altogether and repeated the site description onto the homepage (?!!)

    You only need to wrap your existing h2 site-description in the conditional tags. If you paste it straight in you will have two, also my first code block was missing the closing /h2.

    <?php    if (  is_front_page()) { ?>

    Site Description

    <?php } ?>

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

The topic ‘Remove site description from all other than the front page’ is closed to new replies.