Question

I changed the standard settings of my joomla page a little, I made the article title the h1 heading on the front end and changed the settings so that the menu title does not show up. To make the article title an h1 I used a extension called header tags.

The problem was that the word "Article" showed up on every page (as the h1 tag) that did not have a menu item linked to it, i.e. all the pages that were linked to the rest of the site through another article. I resolved this with the approach listed here: http://blog.cyburg.eu/2012/02/27/fixed_suppression_of_name_articles_jglobal_articles_in_joomla_bug/

After that the h1 heading "Article" was gone, however, the article title was not made the h1 tag. Can anyone tell me how to make the article title (which is set as a h2 by standard) an h1?

Here is the code that makes up the front end:

<div class="page-header">
   <h1>  </h1>
</div>

<div class="page-header">
   <h2>the articles title</h2>
</div>

What strikes me is that the h1 tags are still there... I am using joomla 3.2

Was it helpful?

Solution

Copy com_content/views/article/tmpl/default.php to the html folder of your template ... templates/templatename/html/com_content/article/default.php.

Then change

around lines 45 and 56 to

.

And you can cut out the whole h1 block that you aren't using at around line 29.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top