• 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

moved post/page titles, post titles disappeared on archive 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 › moved post/page titles, post titles disappeared on archive page

This topic is: not resolved

Tagged: archive page, page titles, post titles

  • This topic has 5 replies, 2 voices, and was last updated 9 years, 3 months ago by dmcleod87.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 14, 2016 at 12:14 am #181380
    dmcleod87
    Member

    hi everyone,

    i have re-positioned the page/post titles and breadcrumbs to the 'genesis_after_header' hook using the below snippet , this is so that i can create a full width banner behind the title. the problem i have is that since i have removed the 'genesis_entry_header', on the posts page as designated in the WordPress Reading settings, the posts titles don't appear, just the archive page title. on the singular post page it works fine.

    working on the site from my local machine so no URL to show you what i'm talking about, hopefully the above is enough to go on. can someone point me in the right direction please! thanks!

    
    //* Remove the entry title
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    
    //* Remove the entry header markup
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
    
    //* Move the entry header markup and entry title before the content on all pages except the front page
    add_action( 'genesis_after_header', 'wp_add_entry_header' );
    function wp_add_entry_header()
    {
    	if (is_front_page()) {
    		return;
    	}
    	elseif (is_home()) {
    		return;
    	}
    	genesis_entry_header_markup_open();
    	genesis_do_post_title();
    	genesis_entry_header_markup_close();
    }
    
    //* Move Archive page title before content
    remove_action( 'genesis_before_loop', 'genesis_do_posts_page_heading' );
    add_action( 'genesis_after_header', 'genesis_do_posts_page_heading' );
    
    //* Reposition the Genesis breadcrumb below entry title
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    add_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );
    
    March 18, 2016 at 11:48 pm #181836
    dmcleod87
    Member

    no ideas on this problem? here is a screenshot to help visualise what i'm referring to - screenshot

    any help would be greatly appreciated!

    July 21, 2016 at 4:15 pm #189966
    pvanania
    Member

    Did you figure out a solution? I am having the same problem.

    July 21, 2016 at 7:59 pm #189981
    dmcleod87
    Member

    no sorry i never did figure it out...i've deleted the screenshot link by accident too...if i remember i'll post another later in case someone comes across a solution.

    July 22, 2016 at 8:34 am #190004
    pvanania
    Member

    Hey this worked for me (thanks to Bill Erickson)

    function be_page_header() {

    $title = false;
    if( is_singular() && ! is_page_template( 'page_blog.php' ) ) {
    $title = get_the_title();
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    }

    if( is_home() || is_archive() || is_page_template( 'page_blog.php' ))
    $title = 'Blog';

    if( is_search() )
    $title = 'Search results for: ' . get_search_query();

    if( $title )
    echo '<div class="page-header"><div class="wrap"><h1>' . $title . '</h1></div></div>';
    }
    add_action( 'genesis_after_header', 'be_page_header' );

    July 24, 2016 at 12:47 pm #190035
    dmcleod87
    Member

    thanks for sharing...glad it worked for you but unfortunately that wasn't the solution i was after.

    with my original code above, this is what the posts page currently looks like.. It has the page title in the banner, but the post title is missing, it should be in the space above the date. in this screenshot of the individual post page, the title is in the banner as it should be.

    can anyone point out what i'm doing wrong? adding add_action( 'genesis_entry_header', 'genesis_do_post_title' ); adds the post title back in as seen here but then it's duplicated on normal pages as seen here

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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

© 2025 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