WordPress.org

Ready to get started?Download WordPress

Forums

Headers on Pages (3 posts)

  1. elusivephoto
    Member
    Posted 3 years ago #

    I am working on this site for a client and she's requested I set it up where there are automatic H1 type headers on each of the separate pages ("resources", "getting started", "about", "contact") With the same title as the page itself.

    How would I go about doing that? Thanks!

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    that depends a little bit on where this h1 is supposed to show.

    general - in page.php:

    <h1><?php echo $post->post_title; ?></h1>

    or if it is already in the loop:

    <h1><?php the_title(); ?></h1>

  3. elusivephoto
    Member
    Posted 3 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags