Support » Theme: Twenty Nineteen » Display page title on Posts page (“News”)

  • Resolved mariojames


    Hello all,
    I’m looking for a non-plugin solution for adding the page title (in this example “News”) to the top of the Posts (or blog) page. The title is in the actual page (generating the permalink), but trying to add the_title(); and a few researched variations of that to archive.php in the parent theme didn’t work.
    Another shot at the solution was to add the Latest Posts widget to the News page when it wasn’t selected to be the Posts page, but that only pulled the title and date. This is in development at the same site under Blog in the nav.
    Thanks in advance for your help.

    • This topic was modified 4 months, 1 week ago by mariojames.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Resolved!

    <header class="entry-header">
      // Pull in page title.
        single_post_title( '<h1 class="blog-title">', '</h1>' );
    </header><!-- .entry-header -->

    I was editing archive.php not index.php

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.