Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

H2 instead of H1 on article pages?

Featured Lock Resolved Issue
Hello,

I just noticed that main article headlines are treated as an H2, this is a major SEO drawback. The H2 being used for the title in the category blog layout is good, but when you click though to an article that title should be the H1 on the page: https://new.ecomagazine.com/news/regulation/noaa-release-texas-marine-debris-emergency-response-guide

I'm surprised this is the case considering this is a news template. How can I fix this issue?

Thank you,
John

1 Answers

conshelf

More than a month ago #Permalink
I fixed the issue by updating this file templates/shaper_news365/html/com_content/article/default.php on line 65 from this:

<!-- ::: START Article section -->
<div class="entry-header<?php echo $has_post_format ? ' has-post-format': ''; ?>">
<h2 itemprop="name">
<?php if ($params->get('show_title')) : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h2>


To this:

<!-- ::: START Article section -->
<div class="entry-header<?php echo $has_post_format ? ' has-post-format': ''; ?>">
<h1 itemprop="name">
<?php if ($params->get('show_title')) : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h1>


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 141
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 90
Toufiq

Toufiq

Total Accepted Answers: 25
Pavel

Pavel

Total Accepted Answers: 4
Al Mamun

Al Mamun

Total Accepted Answers: 3

113

Templates

289589

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us