WordPress.org

Forums

Twenty Fourteen
Twenty Fourteen "Blog" Page Title (3 posts)

  1. millertchris
    Member
    Posted 1 year ago #

    Hey folks,

    I've searched high and low via Google, unfortunately the WordPress forums have no targeted search capability for specific themes for specific topics. If this questions has already been posted and answered in another post, please link me.

    Here is the questions.

    When select a particular page as your "blog" page within settings, it removes the page title from the specific page.

    How can you keep the page title or include a page title?

    Thanks in advance!

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    are you referring to the page title as shown on a static page above the content?

    as the 'blog' page uses the index template, you would need to edit index.php in a child theme of Twenty Fourteen, and add possibly after this line <div id="content" class="site-content" role="main"> some code like:

    <?php if( $front_page = get_option( 'page_for_posts' ) ) { echo '<article><header class="entry-header"><h1 class="entry-title blog-page-title">' . get_page( $front_page )->post_title . '</h1></header></article>'; } ?>

  3. millertchris
    Member
    Posted 1 year ago #

    Yes, the reference was regarding the "blog" page as chosen form the "settings" menu of the WordPress site. When a "static" page is chosen to be the "blog" page within settings, it removes the page title altogether and does not display any title for that page, at least within the page itself.

    My solution to this was eventually just using Visual Composer to insert a query of post listings and styling it to my liking. I just found it odd that they would not include an "on-page" title for the blog page that is inherited from the "static" page.

    Probably just a design or functionality decision made at the time the theme was developed.

    I'm familiar with PHP and the tempting system WordPress uses, it's very similar to Drupal. However, I'm still a little green when it comes to PHP.

    Thanks for the response!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic