• Resolved Ready10

    (@ready10)


    Hi all,

    I need the site title & description in the header on the first page only.
    Is it possible to remove the font from the rest of the headers?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is what someone said already on here that helped me:

    In the page.php file search for
    <?php the_title(); ?>

    and add

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

    in front and

    <?php } ?>

    behind it.

    You actually can do this by adding that code to the header.php file. Adding it to page.php did nothing for me.
    Look for <h1 id=”site-title”> and change the code like this.

    <h1 id="site-title">
    <?php if ( is_front_page() ) { ?>
    <a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    <?php } else { ?>
    <?php } ?>
    Thread Starter Ready10

    (@ready10)

    Yeah jrl222, it works!

    Thank you! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove site title & description’ is closed to new replies.