• 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

How to separate "title" and "H1" tag

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 › How to separate "title" and "H1" tag

This topic is: not resolved

Tagged: h1, seo, title tag

  • This topic has 5 replies, 3 voices, and was last updated 10 years, 7 months ago by caballoganador.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 2, 2016 at 4:34 am #182721
    caballoganador
    Member

    Hi, I hope some of you can help me with that:

    The problem that I have with the template is that when I create a new page
    or blog entry, the title of that page automatically appears as H1.

    To improve the page SEO, I need that the title tag and h1 tag were
    different.

    How can I do that ?

    Many Thanks!

    http://juliafarre.es
    April 2, 2016 at 9:20 am #182737
    Brad Dalton
    Participant

    You have at least 2 options based on my knowledge:

    1. You can filter the title

    2. If you don't know how to filter the title, you can remove the title and add it back using the code which builds the default title as a guide. Code which you can dig out of Genesis which also contains the filter.

    You'll find the code in genesis/lib/structure/post.php

    Hope that helps point you in the right direction.


    Tutorials for StudioPress Themes.

    April 2, 2016 at 9:24 am #182738
    Christoph
    Member

    Hi,

    you can use the filter genesis_post_title_output to change the markup of the entry-title.

    Here is some code to get you started:
    http://adamcap.com/code/filter-genesis-h1-post-titles-to-add-for-styling/

    (change the h1 and you don't have to add the span)


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 2, 2016 at 10:21 am #182745
    caballoganador
    Member

    I think I don't know enough about code to do this...

    Anyway many thanks for your help!

    JĂșlia

    April 2, 2016 at 10:59 am #182751
    Christoph
    Member

    All you have to do is copy & paste the snippet in your functions.php and change the h1 to whatever heading you want to use.

    /**
     * Filter Genesis H1 Post Titles to add <span> for styling
     * 
     */	
    add_filter( 'genesis_post_title_output', 'ac_post_title_output', 15 );
    
    function ac_post_title_output( $title ) {
    	if ( is_singular() )
    		$title = sprintf( '<h1 class="entry-title">%s</h1>', apply_filters( 'genesis_post_title_text', get_the_title() ) );
    	return $title;
    }

    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 2, 2016 at 11:52 am #182757
    caballoganador
    Member

    Hi again Christoph, thanks for your patience..

    What I would like is that the title appear as:

    <head>
    <title> (page title) </title>
    </head>

    and that this same title does not appear with any kind of label H

  • 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

© 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