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

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems