• 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

keep post title while removing page title

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 › keep post title while removing page title

This topic is: resolved

Tagged: page-title, post title

  • This topic has 12 replies, 3 voices, and was last updated 11 years, 7 months ago by Boca.des.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • September 12, 2014 at 6:26 am #124093
    Boca.des
    Member

    I am using the blog template to display categories using query_args. I've added content above the blog template to describe each category.

    How do I remove the page title but keep the post titles in the blog template? This is my code but its deleting the post titles as well?

    add_action ('get_header', 'remove_page_titles_genesis'); 
    function remove_page_titles_genesis() {
    if ( is_page_template('page_blog.php')) { 
    remove_action('genesis_entry_header', 'genesis_do_post_title');
    }}
    September 12, 2014 at 8:17 am #124099
    Brad Dalton
    Participant

    Link to the source of your code please.

    This tutorial explains how to remove or hide titles using PHP or CSS code.

    Could you also link to the page you want to remove the title from. Thanks.


    Tutorials for StudioPress Themes.

    September 12, 2014 at 10:10 am #124120
    Boca.des
    Member

    Sorry, my apologies - didn't realise till I sent it.

    Original code:

    add_action ('get_header', 'remove_page_titles_genesis'); 
    /**
     * @author    Brad Dalton
     * @example   http://wpsites.net/
     */
    function remove_page_titles_genesis() {
    if ( is_page() || $post->post_parent ) { 
    remove_action('genesis_entry_header', 'genesis_do_post_title');
    }}

    Source of code: http://wpsites.net/best-plugins/hide-page-titles-genesis/

    I can't send link to page as its not live yet, its unfinished.

    I can't seem to hide the page titles but show post titles after reading the tutorial? - It just hides them all?

    Thanks again
    Ryan
    Ryan

    September 12, 2014 at 10:21 am #124124
    Brad Dalton
    Participant

    Try CSS


    Tutorials for StudioPress Themes.

    September 12, 2014 at 10:39 am #124125
    Boca.des
    Member

    I have over 200 category pages - its a kind of listings site. I can't name each individual page id?

    September 12, 2014 at 12:10 pm #124134
    Susan
    Moderator

    Have you looked at the Genesis Title Toggle plugin?

    September 12, 2014 at 12:22 pm #124135
    Boca.des
    Member

    I'm using this for the pages that are not category ones. This plugin removes the post titles as well which I want to keep

    September 12, 2014 at 1:23 pm #124144
    Brad Dalton
    Participant

    Hard to help without seeing your source code or style sheet.


    Tutorials for StudioPress Themes.

    September 12, 2014 at 1:39 pm #124148
    Boca.des
    Member

    I've disabled the coming soon plugin for you to see ..

    http://www.kidday.co.uk/southlanarkshire/blantyre-and-hamilton/whats-on/clubs-and-classes/arts-crafts/

    September 12, 2014 at 2:33 pm #124158
    Brad Dalton
    Participant

    Try something like this:

    .page-template-page_blog-php .entry-title {
        display: none;
    }
    

    I suggest you learn how to use Firebug if you're going to design your own site.


    Tutorials for StudioPress Themes.

    September 12, 2014 at 4:59 pm #124172
    Boca.des
    Member

    Both of them share the .entry-title tag, so they are both disappearing - the only difference is the page title is not a link, and the post titles are. I've tried separating them but no joy, I may just have to keep the page title displayed - and add a more descriptive title in the Custom document title

    .page-template-page_blog-php .entry-title {
        display: none;
    }'
    and
    

    .page-template-page_blog-php .entry-title a {
    display: block;
    }'

    September 13, 2014 at 12:36 am #124194
    Brad Dalton
    Participant

    Ok. Mark this as resolved please.


    Tutorials for StudioPress Themes.

    September 13, 2014 at 6:50 am #124221
    Boca.des
    Member

    Will do thanks, thanks for the time and help.

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘keep post title while removing page title’ is closed to new 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