Page 1 of 1

No <h1> tags in Joomla?

Posted: Fri Sep 21, 2012 3:53 pm
by jdran
I realized that my page doesn't show <h1> tags!

How can I make my articles' titles a <h1> tag? Currently it is set to <h2>..

Or do you have different else to recommend?

Re: No <h1> tags in Joomla?

Posted: Fri Sep 21, 2012 4:05 pm
by pe7er
You can use template overrides and add <Hx> tags to the output of the components.
See: http://docs.joomla.org/How_to_override_ ... omla!_core

Re: No <h1> tags in Joomla?

Posted: Fri Sep 21, 2012 6:22 pm
by jdran
Isn't as easy as by first impression I had, but ok, I ll look on it when I find time. For the time being, it seems that I m gonna hide the titles and insert them into my articles as h1..

Edit: I wonder though why Joomla creators didn't take care an easier way to have h1 tags..

Re: No <h1> tags in Joomla?

Posted: Sat Sep 22, 2012 3:19 pm
by Per Yngve Berg
The h1 tag is used for the Page Title. I guess you have turned it off at the menu item.
There is not a big deal if the h1 tag is missing SEO wise.

Re: No <h1> tags in Joomla?

Posted: Sat Sep 22, 2012 7:13 pm
by jdran
Betcha! That's was it..

Re: No <h1> tags in Joomla?

Posted: Mon Nov 05, 2012 6:43 pm
by samiam
There is an excellent plug-in that solves this SEO failure in Joomla! this way a search engine would know that a page title is just that. Without an H1 tag for the title it's just another header among many (and why they are numbered 1,2,3 as in importance). I'm adding it here as I ran across this thread with just such an issue. The suggestion that it doesn't matter is wrong, at least regarding SEO.

http://extensions.joomla.org/extensions ... data/14835

Re: No <h1> tags in Joomla?

Posted: Tue Nov 06, 2012 10:25 pm
by SimonHayter
Personally long as you have some tags on the page that'l work, too many people read bad advice. Google has changed, they have so many indicators which pickup on what the page is about,

Incoming Links
Outgoing Links
Social Mentions
Titles
Meta Decriptions
Alt Picture Tags
and most of all the content it self.

Theres many more signals that Google uses to establish what the page is about so even without h tags its still possible to rank well, just look at wikipedia for example they hardly use any.

Content > External SEO via Social Media + Links > Reputation > Good Rankings

Re: No <h1> tags in Joomla?

Posted: Sat Aug 17, 2013 7:08 pm
by changlee
What is the best technique to change the article titles and at category blog to H1 headings?

Re: No <h1> tags in Joomla?

Posted: Sat Aug 17, 2013 7:53 pm
by Per Yngve Berg
Add a Page Title to the Menu Item.

Re: No <h1> tags in Joomla?

Posted: Sat Aug 17, 2013 9:25 pm
by changlee
Dear Per,
If I add a Page Title at the menu item, every article title in the category blog will be H1 tag?

Re: No <h1> tags in Joomla?

Posted: Sun Aug 18, 2013 5:14 am
by Per Yngve Berg
h1 - Page Title
h2 - Article Title

There will be one h1 and repeated h2. That is the most desired set-up.
For a Single Article Layout, Add a Page Title and hide the Article Title.

To change it, an override of the layout in your template is required.
http://docs.joomla.org/How_to_override_ ... omla!_core

Some template do have a parameter to change it.

Re: No <h1> tags in Joomla?

Posted: Mon Aug 19, 2013 9:53 am
by changlee
Dear Per,
I am using many categories blog menu items in my Joomla 2.5 website and I have zero H1 !!!

Can you please tell me specifically what steps have I to do in order to show in a clicked category blog menu item, the titles of the articles in H1

Thanks!

Re: No <h1> tags in Joomla?

Posted: Wed Aug 28, 2013 5:09 pm
by John081
Check the template you are using for your website.

Re: No <h1> tags in Joomla?

Posted: Wed Aug 28, 2013 6:52 pm
by Per Yngve Berg
Your template must use overrides. See files in templates/<your template>/html/com_content

Re: No <h1> tags in Joomla?

Posted: Fri Nov 29, 2013 12:54 pm
by changlee
So it is template's issue only?

Re: No <h1> tags in Joomla?

Posted: Fri Nov 29, 2013 4:33 pm
by pishro
As most SEO experts believe, H1 tag on a website article title is given more weight by search engines, particularly Google. I believe it too.
But Joomla does not tag the article title with H1. Instead they enclose it with

Code: Select all

<td class="contentheading"></td>
Please send your comments about this, it is For me important to know your opinion on this item.
thank you

Re: No <h1> tags in Joomla?

Posted: Mon Dec 02, 2013 10:02 am
by changlee
Yes, I see the contentheading too in all my article titles.

What is the best way to oprimise them to H1 tags?

Re: No <h1> tags in Joomla?

Posted: Mon Dec 02, 2013 4:55 pm
by pishro
There are several ways. One way is using the template override, but this involves serious coding.
Edit the file /www/components/com_content/views/article/tmpl/default.php.

Code: Select all

<?php if ($this->params->get('show_title')) : ?>
<td class="contentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>" width="100%">
<?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
<a href="/<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php echo $this->escape($this->article->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->article->title); ?>
<?php endif; ?>
</td>
<?php endif; ?>
Modify that part by adding H1 tag.

Code: Select all

<?php if ($this->params->get('show_title')) : ?>
<td class="contentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>" width="100%">
<h1><?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
<a href="/<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php echo $this->escape($this->article->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->article->title); ?>
<?php endif; ?></h1>
</td>
<?php endif; ?>
Just a note, adding H1 is not the only technique in SEO. There are more to it.

Re: No <h1> tags in Joomla?

Posted: Tue Dec 03, 2013 10:00 am
by changlee
I did not found the code you suggested me in that file.

I found only:

Code: Select all

<?php if ($params->get('show_title')) : ?>
	<h2>
	<?php if ($params->get('link_titles') && !empty($this->item->readmore_link)) : ?>
		<a href="<?php echo $this->item->readmore_link; ?>">
		<?php echo $this->escape($this->item->title); ?></a>
	<?php else : ?>
		<?php echo $this->escape($this->item->title); ?>
	<?php endif; ?>
	</h2>
<?php endif; ?>
Where I replaced the H2 with H1

And nothing happened.

I know that H1 is not the only one technique, but I have done many techniques and my website is still at 3rd page with ZERO H1 tags!!!

Re: No <h1> tags in Joomla?

Posted: Fri Feb 24, 2017 7:04 am
by wedevlop
what settings do i adjust if i am using joomla 3.5?

Re: No <h1> tags in Joomla?

Posted: Fri Feb 24, 2017 7:25 am
by sozzled
wedevlop wrote:What settings do i adjust if i am using joomla 3.5?
Just like this topic (which is old), the version of Joomla you are using is also old.

Re: No <h1> tags in Joomla?

Posted: Fri Feb 24, 2017 8:18 am
by wedevlop
sorry, when i check i am using joomla 3.6.5

Re: No <h1> tags in Joomla?

Posted: Fri Feb 24, 2017 8:43 am
by sozzled
@wedevelop: please do not cross-post on this forum. Cross-posting is against the forum rules.

Re: No <h1> tags in Joomla?

Posted: Fri Feb 24, 2017 8:54 am
by wedevlop
sozzled wrote:@wedevelop: please do not cross-post on this forum. Cross-posting is against the forum rules.

What do you mean against the rule? which one is my violation? :eek:

Re: No <h1> tags in Joomla?

Posted: Fri Feb 24, 2017 9:30 am
by Per Yngve Berg
1) You have High-jacked someone else's topic instad of creating your own.
2) Do not Necro Post. This Topic is from 2012
3) You have posted in the 2.5 forum with a problem with 3.x