• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add Title to Blog Page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add Title to Blog Page

This topic is: not resolved

Tagged: blog

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by TGScreative.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 21, 2014 at 1:50 pm #128677
    TGScreative
    Member

    I created a page "News" and then selected it to be the blog page under Settings.
    This removes the page title, i.e., News. How do I get it to appear?
    I have tried several methods first adding this to functions.php:

    if( is_home() && get_option( 'page_for_posts' ) ) echo get_the_title( get_option( 'page_for_posts' ) );

    and this variation I found on this forum

    add_action('genesis_loop', 'add_title_to_blog', 5);
    function add_title_to_blog(){
    	if ( is_page( 'News') ) :
      echo '<h1 class="entry-title"> ' . get_the_title() . '</h1>' . "\n";
      endif;
    }

    Neither work.Any idea how to do this?

    http://artbaseweb.artbase.com/news/
    October 21, 2014 at 2:16 pm #128682
    TGScreative
    Member

    Also tried another method, creating a blog template in the child theme with this code:

    <?php
    //* Template Name: Blog
    //* Show page content above posts
    add_action( 'genesis_loop', 'genesis_standard_loop', 5 );
    genesis();

    I applied the template to the blog. At first this didn't work at least not until I went to settings and deselected the News page as a "post page" from settings for a site with a static front page.

    So am I doing this right? I didn't see any information about how to set up a static home page in the Genesis which seems like a grave omission. What am I missing here?

    October 21, 2014 at 5:13 pm #128693
    JamesRoberts
    Member

    Hi TGScreative, please can I check, where exactly have you set the news to to be a blog page? Am I correct in thinking that you have set your news page as the static front page under Settings -> Reading? Thanks.


    Need beautiful and responsive Genesis child themes at amazing prices? Stop by LlamaPress and check out our themes.

    November 25, 2014 at 3:17 pm #132805
    TGScreative
    Member

    Sorry I dropped the thread on this. I created a page called News. On Settings I selected that as my Posts PAge. I want any content from my static page, i.e., the page title and and text below that, to appear at the top of the page, before the list of blog posts.

    I tried adding this to functions.php

    
    //* Add page title to blog page
    add_action ( 'genesis_before_content','my_blog_title' );
    function my_blog_title() {
    if ( is_archive() ) :
    echo '<h1 class="entry-title">'. get_the_title() .'</h1>';
    
    endif;
    } 

    but I guess I did somethign wrong because it doesn't work

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble