4

I´m new to Joomla and started on my own template.

Using this code to get articles:

<jdoc:include type="component" />

Output multiple tags on the same page... This is, as far as I know, bad for google SEO.

Is this the normal behavior of Joomla or what should I change to avoid having multiple H1´s?

  • This is nothing to do with that line of code. The <h1> for articles derives from the following line of code: github.com/joomla/joomla-cms/blob/staging/components/… – Lodder Jul 27 '18 at 17:17
  • @Lodder Thanks! But I don´t understand why the system files would generate multiple H1 tags? also the lack of html 5 tags, like menu in <nav> tag and <article> instead of <div> – JonasB Jul 27 '18 at 17:47
  • The Joomla 3.x template of pretty much rubbish and comes with so much bloat. You're definitely best off creating your own template. As for the multiple tags, is it possible that you have a Template Override for that file? Or perhaps you have the page title and article title set to "on"? – Lodder Jul 27 '18 at 18:02
  • @Lodder Okay, is it allowed and possible to override the com_content parts? Just to have it display proper html5 tags... Hmm, I´m really not sure as I´m new to joomla. But I´m pretty sure I haven´t made any overrides – JonasB Jul 27 '18 at 18:14
  • You can override it. Just make sure you don't edit the file mention above and you actually perform a proper override. You can find out how to do so here: docs.joomla.org/… – Lodder Jul 27 '18 at 18:15
4

The issue of multiple H1 tags was introduced because the page I was viewing was showing featured articles.

Solution was to make an override of com_contents featured file by changing h1 to h2 in the file script

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.