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>

12 thoughts on “Avada h2 to h1”

  1. 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.

    1. 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.

  2. 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!

  3. 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 🙂

  4. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *