• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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:

Register for full access

Related Tutorials

  • Modify The Genesis Entry Title Wrap From H2 to H1 Tags On Archive Pages

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.