Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: To many h1 Headings for SEO #91147

    Devin,

    I just found the solution after looking into the loop-portfolio.php file, I could see that it was calling the avia_title function with the $class set as ‘portfolio-title’ and by adding a conditional check in avia_title I was able to fix the issue…..

    Previously the portfolio entries were coming up with <h1> tags in their titels on both the homepage, but as well in the portfolio page, but by adding this code, I have changed them to <h3>.

    if($class==’portfolio-title’)

    {

    $output .= ‘<h3 class=”main-title”>’.$title.’</h3>’;

    }

    else

    { $output .= ‘<h1 class=”main-title”>’.$title.’</h1>’;

    }

    in reply to: To many h1 Headings for SEO #91145

    Hi Ismael,

    I have tried it with is_home() as well, and it it still serving up the <h1> tag on the homepage.

    I currently have modified the avia_title function in functions-choherence.php to the following

    if(is_home())

    {

    $output .= ‘<h3 class=”main-title”>’.$title.’</h3>’;

    }

    else

    { $output .= ‘<h1 class=”main-title”>’.$title.’</h1>’;

    }

    but it is not working… It must be due to the page being configured dynamically and built in the Template Builder, as I can use is_home function in the header and it works fine there.

    in reply to: To many h1 Headings for SEO #91143

    I would like to change the H1 “main-title” tag that is shown on my dynamic homepage when portfolio items are shown to H3, and I found the code in functions-coherence.php, but it is not working with is_home() nor is_frontpage().

    Is there a Avia framework call that I can use to see if the page is the homepage?

    if(is_front_page()) {

    $output .= ‘<h3 class=”main-title”>’.$title.’</h3>’;

    }

    else { $output .= ‘<h1 class=”main-title”>’.$title.’</h1>’;

    }

    …Mikael

Viewing 3 posts - 1 through 3 (of 3 total)