• 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

Is there a Way to Replace a Page H1 Title with a DIV?

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 › Is there a Way to Replace a Page H1 Title with a DIV?

This topic is: not resolved

Tagged: h1, hide title, title

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by eluviis.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 4, 2013 at 7:23 pm #24235
    eluviis
    Member

    Is there a Way to Replace a Page H1 Title?

    Basically, what if you want to name a page, but have it not display its title or have the title be wrapped in H1 tags? That way, you can display some custom text wrapped in a div and h1 at the top of the page/post?

    To give you an idea of what I'm trying to do, look at the Studiopress 101 page here: http://www.studiopress.com/get-started

    Notice how "We're Studiopress" is wrapped in a div and H1's. That's easy to do, but how do I stop the title of the page to show in the post wrapped it it's own set of H1's. (assuming the name of the page is "about" or "start" or whatever.

    I'm doing this on only 1 or 2 pages of the entire site by the way.

    March 5, 2013 at 9:43 pm #24480
    Noe Garcia
    Member

    I have the exact same question.

    It will be great to remove that title from showing when is a page.

    March 5, 2013 at 10:00 pm #24482
    Noe Garcia
    Member

    I found the answer that was provided by Brian Bourn; simply copy/paste the following code to your "functions.php" file on your child theme:

    //***Remove Page Titles From All Pages Except Blog Page Template**/
    add_action( 'get_header', 'bourncreative_remove_page_titles' );
    function bourncreative_remove_page_titles() {
    if ( is_page() && ! is_page_template( 'page_blog.php' ) )
    remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }

    March 6, 2013 at 3:26 am #24504
    eluviis
    Member

    Hmmm. I'll give it a try, thanks. I do however, want to hide the title ONLY on 1 page (it's an about page). But I should be able to modify that code with a page ID so that it only affects that one page. I'll try it and report back. Thanks, Danny

  • 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

© 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