skip to Main Content

I am trying to optimize a site for SEO, using WordPress and the Enfold theme.

The theme is generating an extra <h1> tag with the class of page-title

For example:

<h1 class="page-title"> </h1>

I have looked in every theme file imaginable and can’t find the culprit anywhere.

The site is fivestarmusic.com.au

2

Answers


  1. Basically, that header is under your WooCommerce template, possibly under your theme folder. You need to look for that here:

    wp-content
       |--- Themes
          |--- yourTheme
             |--- Woocomerce
    

    It should be under this folder, name Category.php or similar.

    Login or Signup to reply.
  2. Modify function-enfold.php, and look for this code:

    // Disable title if requested
    if($header_settings['header_title_bar'] == 'breadcrumbs_only')
        $args['title'] = '';
    

    Replace it with:

    // Disable title if requested
    if($header_settings['header_title_bar'] == 'breadcrumbs_only')
        $args['html'] = "<div class='{class} title_container'><div class='container'>{additions}</div></div>";
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search