WordPress.org

Support

Support » Themes and Templates » Lightword Theme H1 tag only on homepage

Lightword Theme H1 tag only on homepage

Viewing 1 replies (of 1 total)
  • francomusso
    Member

    @francomusso

    If I understand you correctly, you want to have a specific heading at the top of your blog listing page, but use the post’s title as the heading at the top of your blog posts?

    I would add the following in index.php

    <?php
    if ( is_front_page()) { ?>
       <h1>A standard heading</h1>
    <?php } else { ?>
        <h1><?php the_title(); ?></h1>
    <?php } ?>

    The posts themseleves will continue to use the post title as per your single.php

    I hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Lightword Theme H1 tag only on homepage’ is closed to new replies.