Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Article titles: H2 to H1

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi all.
Usualy Joomla is publishing articles titles in H2 tags.
In seen in the Xero template that the default article template as been almost corrected to generate H1 tags instead of H2 tags for articles titles :
(lines 49 to 52 in mywebsite/templates/xero/html/com_content/article/default.php)
<h1 class="article-title" itemprop="name">
	<?php echo $this->escape($this->item->title); ?>
	<meta itemprop="url" content="<?php echo $prefix.$url ?>" />
</h1>
But it's not working, Articles Titles are still H2.
Did I missed someting in the template's configuration ?

Sincerely.
Bruno.
  • Brunus's Avatar
  • Brunus
  • 12 Month basic
  • 99 posts
  • 1 Thanks
  • Karma: 8
Last Edit: 9 years 4 months ago by Brunus.
The administrator has disabled public write access.
Hi Bruno,

Do you have an example or a page I can refer to in the quickstart?

The pages I've checked all use h1

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

In fact I installed a Xero Quickstart to have a quick main view but after exploring deleted all modules/articles/categories. Then I'm not sure that the site is still a "Quickstart".
In my case the prob with H2 in as article title exist both in featured article page or category blog page.

I think I will install a pure Joomla 3 and just Xero template + requiered JB modules/plugins etc to try to reproduce.

Sincerely.
Bruno.
  • Brunus's Avatar
  • Brunus
  • 12 Month basic
  • 99 posts
  • 1 Thanks
  • Karma: 8
The administrator has disabled public write access.
Hi Bruno,

Just had a quick look - with the category blog page the articles have h2 tags but when an page is opened it is a h1 tag

With the h1 tag there is only supposed to be one per page

Cheer
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

Haaa ! Yes...this is a big question and sorry I forgot that.
I'm usualy using several H1 in one page, specialy when I have multiple <article> tags like in the Joomla featured article page.
And, it seems to be the right way to use HTML5...but I agree it's not so clear.
Pretty long article but very interresting :
webdesign.tutsplus.com/articles/the-truth-about-multiple-h1-tags-in-the-html5-era--webdesign-16824

Then I can't say it's a bug in the JB template to put a H2 on an article title in blog kind of view...
Perhaps I will change it myself, but I'm afraid to loose the correction on each update of the template...argh !

What you think Paul ?

Sincerely
Bruno
  • Brunus's Avatar
  • Brunus
  • 12 Month basic
  • 99 posts
  • 1 Thanks
  • Karma: 8
The administrator has disabled public write access.
Hi Bruno,

It should be all h2 on blog/category page links and then h1 on any of those pages when they are opened

At the moment that is what users expect from the previous google suggestions/demands - I will ask Anthony about this as it requires his input :)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers