Duplicate H1 tags in article

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Apr 16, 2015 9:37 am
Reply with quote
Report this post
Good morning,

It's strange I have duplicate H1 tags in articles one of them empty and the other with the article heading:

Code: Select all
<header>
  <h1></h1>
  <ul><li class="created"><time datetime="2015-04-15T09:51:45+00:00"  itemprop="dateCreated">Abril 15</time></li></ul>
  <h1 itemprop="name">Name article</h1>
</header>


Any hint?
User avatar
Senior Boarder

teitbite
Thu Apr 16, 2015 1:59 pm
Reply with quote
Report this post
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

teitbite
Sat Apr 18, 2015 1:19 pm
Reply with quote
Report this post
Hi

Please edit file /html/com_content/article/default.php and replace code:

Code: Select all
      <?php if ($params->get('show_page_heading', 1)) : ?>
      <h1><?php echo $this->escape($params->get('page_heading')); ?></h1>
      <?php endif; ?>


with

Code: Select all
      <?php if ($params->get('show_page_heading', 0)) : ?>
      <h1><?php echo $this->escape($params->get('page_heading')); ?></h1>
      <?php endif; ?>


or remove this code entirely if You do not need a page heading (You can set it in menu item settings).
User avatar
Moderator

GK User
Mon Apr 20, 2015 7:29 pm
Reply with quote
Report this post
Thanks, worked.
User avatar
Senior Boarder


cron