Avada h2 to h1

I use Avada on most of my wordpress sites. It is very powerful wordpress theme and it is very easy to use. The post titles in Avada is h2 by default and here Is a quick guide to fix it. It is much better seo wise to use h1 in you post titles. This works with Avada version 3.8.1.

Avada h2 to h1 fix

Go into Avada theme folder

Open single.php

Change

<?php echo avada_render_post_title( $post->ID, FALSE, '', '2' ); ?>

To

<?php echo avada_render_post_title( $post->ID, FALSE, '', '1' ); ?>

Avada works with woocommerce and here is the same kind of problem, and here can you change your product titles from h2 to h1 aswell. I did this fix on gadgetoversigt.dk if you are interested.

Avada woocommerce h2 to h1 fix

Go into Avada theme folder

Go into woocommerce folder

Go into single-product

Open title.php

Change

<h2 itemprop="name" class="product_title entry-title"><?php the_title(); ?></h2>

To

<h1 itemprop="name" class="product_title entry-title"><?php the_title(); ?></h1>

13 Comments

  • Hensolo

    September 24, 2015

    Thank you! Exactely what I was looking for! Unfortunately after that change there’s an automatic bold and condensed lettering applied to the post title line. Any clue where I can fix that and how? I’m not looking for the regular h1 settings in theme options, but for the settings of single post tiles in particular.

    Reply
    • bonden14

      September 24, 2015

      You can use some custom css to fix it. Single post titles got a css class tag called .entry-title that you can use to style your h1. Try change the font-weight to 400. So put .entry-title {font-weight:400;} in your avada custom css in the Avada theme option.

      Reply
      • Alik

        December 5, 2015

        Thanks a lot! Exactly what I was looking for!

        Reply
  • mark

    October 19, 2015

    don’t you also need to change the post title in the page title bar to h2. so that you don’t have two h1??

    Reply
  • Anthony

    February 7, 2016

    Thank you soooooooo much. Worked like a charm and yours was the easiest solution I could find on the net. Your awesome.

    Reply
  • Rob

    March 3, 2016

    It seems Avada does use H1’s in the page title bar whether its set to be visible or not – will these not be picked up by search engines? So no need to change the visible WC titles to H1? I was just thinking about this myself and Marks comment prompted me to rethink… thoughts would be appreciated!

    Reply
  • Richardsan

    June 16, 2016

    Hello friend,

    here i found the most proper way to fix this issue on home page as well ass subpages is try to find this code

    // return the HTML markup of the post title
    // Change title h1 – h2 tag

    “themes\Avada\includes\avada-functions.php” file location

    chnage H Tag as per your requirement Enjoy WP 🙂

    Reply
  • Cristiano

    October 2, 2016

    Thanks a lot!!! 🙂

    Reply
  • John

    November 3, 2016

    Seriously why would they even make it a H2? totally stupid on there part to do that.

    Reply
  • Jonas Krüger

    December 18, 2016

    Awesome tip on Avada and H1 tags! Many thanks.

    Reply
  • Konstantin

    January 13, 2017

    Thank you very much!

    Reply
  • Ina

    February 27, 2017

    Very helpful article! I also got a weird font when applying this manoeuvre but used custom CSS, as you suggested in the comments, to get the look of the other H1’s on my site. Thank you very much!

    Reply
  • joseph

    June 16, 2017

    Hi guys, any updates for the code on how to change h2 to h1? it’s not working anymore this time. thanks!

    Reply

Leave a Reply