Modify Entry Title H1 Tags Wrap on Single Posts

This code enables you to change the heading/title tag your entry titles on single posts are wrapped in.

By default, Genesis wraps the post title in H1 when on single posts or pages and H2 when not.

h2-heading-tag

Here’s the code in Genesis which shows you that:

//* Wrap in H1 on singular pages
$wrap = is_singular() ? 'h1' : 'h2';

To change this, we can use code and modify the h1 and/or h2 to anything we like.

title-tag

You can also use the code to change the wrap for semantic headings when using the genesis SEO settings.

On top of this, the code also enables you to change the wrap for the title when not singular.

Here’s the code for members:

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.