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

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.