• 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

Remove title on 'pages' only

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 › Remove title on 'pages' only

This topic is: not resolved

Tagged: page, post, remove, title

  • This topic has 12 replies, 5 voices, and was last updated 9 years, 11 months ago by Brad Dalton.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • February 27, 2013 at 4:09 am #23071
    fortyfivecreative
    Member

    Hi,

    I'm looking for a function to remove the page title on the 'static' pages only, but leaving it visible on any blog, single and archive pages, etc. It would also need to remain visible on the static page I have set to show the blog posts.

    I'm assuming there is a way to do this without a large array?

    Thanks in advance

    David

    February 27, 2013 at 5:14 am #23074
    Brad Dalton
    Participant

    Link to your site please

    It would be something like this:

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

    Get Help – Book Consultation.

    March 4, 2013 at 12:48 pm #24088
    foundation press
    Member

    I have the same question as fortyfivecreative.

    Thanks for your response braddalton. Could you be more specific as to where the code snippet you posted should be added? Does it go in the "page-title.php" file? Does it matter where in the file it is added?

    Thanks,

    Curt

    March 4, 2013 at 1:03 pm #24089
    foundation press
    Member

    OK,

    Just added the line of code you recommended to my functions.php page and got locked out of my blog dashboard with the message:

     

    Parse error: syntax error, unexpected '.' in /home/curt/public_html/fpressstudio.com/blog/wp-content/themes/minimum/functions.php on line 23

     

    Please tell me I can undo what I did without starting all over with a fresh install...

     

     

    March 4, 2013 at 2:07 pm #24112
    asdweb
    Member

    braddalton's suggestion is a possible CSS remedy NOT to be included in the .php file. You will need to access your site via FTP to remove the code you added to the functions.php.

    Once you get the site up again, try the CSS remedy in style.css. If that doesn't work, consider this plugin. It may just work for what you need. Genesis Title Toggle

    Do include a link to your site if you need more help.


    Amy Susan Design.com @AmySusanDesign

    March 4, 2013 at 5:08 pm #24161
    Brad Dalton
    Participant

    Yes sorry, i should have mentioned the code goes at the end of your child themes style.css file. My Bad!!

    CSS doesn't work very well in the functions.php file!!!

    The reason i suggest CSS is so the title is still visible in the source code and gets scanned by Google's little monsters.


    Get Help – Book Consultation.

    March 11, 2013 at 1:40 am #25427
    ischbins
    Member

    Hi all,
    I have a similar question.
    I want to remove the title and the date from my first site, the "start"-page ....., but only from this site and not from all static ones.

    I found the following code and put it in the "function.php" of the child
    theme (using child-theme "Expose"), but it doesn't work:

    //REMOVE PAGE TITLE FROM HOME PAGE
    add_action('get_header', 'child_remove_page_titles');
    function child_remove_page_titles() {
       if (is_home()) {
         remove_action('genesis_post_title', 'genesis_do_post_title');
       }
    }

    Do you have any ideas how to remove at least the page
    title ... and as said I want to remove the date as well?

    Thanks in advance & best regards,
    Frank

    March 11, 2013 at 1:43 am #25428
    Brad Dalton
    Participant

    Hide them using CSS code if your PHP doesn't work.

    Can you link to your site please.

    You mean from your home page or front page?


    Get Help – Book Consultation.

    March 11, 2013 at 1:49 am #25429
    ischbins
    Member

    Hi Brad,

    thanks for your fast response.

    The site isn't official so far.... however, I will make it visible for the next hour. Please let me know when you could have a look at it.

    http://www.yourbavaria.de

    Thanks so far,

    best regards,

    Frank

    March 11, 2013 at 3:17 am #25435
    Brad Dalton
    Participant
    .home .post-info {
    display: none;
    }
    
    .home #content h1 {
        display: none;
    }
    

    Paste this CSS code at the end of your child themes style.css file.


    Get Help – Book Consultation.

    March 11, 2013 at 3:34 am #25437
    ischbins
    Member

    Brad,

    thank you so much. That's it.

    Another question: Just in case I don't want to display the title on other pages as well. How looks the css-code for generally hiding "title, Author, date"?

    Again, thanks a lot.

    Best rgds,

    Frank

     

    March 11, 2013 at 4:11 am #25440
    ischbins
    Member

    ... sorry, just to mention, that I have tried to code on top of this thread.

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

    That doesn't work because "date" is still visible.

    Rgds,

    Frank

     

    March 11, 2013 at 8:07 pm #25555
    Brad Dalton
    Participant

    I added the CSS code as new rule in Firebug and it did work. Try clearing your browser cache.

    The other code you are referring too doesn't relate to your site which is probably why it doesn't work. ALL the code i post here is tested so it ALWAYS works otherwise i wouldn't post it.

    I have every single SP theme installed locally.

    If you want to hide a title on a page or posts simply use the post i.d

    Example:

    .post-id-007 .entry-title {
    display: none;
    }
    

    Hiding titles on posts and pages will reqiure different code.

    You need to be very specific with a question to get the best answer.


    Get Help – Book Consultation.

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

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