• 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 add an ID to the Entry 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 › General Discussion › How to add an ID to the Entry Title

This topic is: not resolved

Tagged: category, entry, hook, id, link

  • This topic has 3 replies, 3 voices, and was last updated 10 years, 11 months ago by Teo100.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 19, 2014 at 9:05 am #85877
    Scott Pruett
    Member

    I'm adding some accessibility features onto a site built on Genesis, and I'm having a tough time with what feels like a simple task. How do I change this:

    <h1 class="entry-title">

    to this:

    <h1 class="entry-title" id="content">

    Reason: to add a skip link.

    What's a skip link? --> http://make.wordpress.org/accessibility/wp-accessibility-plugin/#c2

    Thanks!
    Scott

    January 19, 2014 at 9:21 am #85885
    Genesis Developer
    Member

    see this post http://wpquestions.com/question/show/id/2083, http://adamcap.com/code/filter-genesis-h1-post-titles-to-add-for-styling/


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    January 19, 2014 at 3:18 pm #85955
    Scott Pruett
    Member

    That did the trick. Thanks!

    My version:

    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" id="content">%s</h1>', apply_filters( 'genesis_post_title_text', get_the_title() ) );
     
    	return $title;
     
    }
    December 10, 2014 at 6:51 pm #134243
    Teo100
    Member

    Hi,

    I would be interested to add an ID to category page entry-title link, entry-image and read more.
    How would I do this?
    You can see my original question here: http://www.studiopress.community/topic/adding-idclass-tag-to-category-page-links-on-genesis/

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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