Keyword

How to set <h1> headers for item's title?

  • Daniele Pinti
  • Daniele Pinti's Avatar Topic Author
  • Offline
  • New Member
More
8 years 4 months ago #154480 by Daniele Pinti
How to set <h1> headers for item's title? was created by Daniele Pinti
Hi.
1) Is there a good reason why K2's default items' titles have <h2> tags (I'm not an expert, just asking...)?

2) I would rather set K2 to output items' titles between <h1> tags. How to do that?

Thanks in advance.

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
8 years 4 months ago #154485 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic How to set <h1> headers for item's title?
Hi,
You can change the html tags by modifing your K2 template file(s).

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Daniele Pinti
  • Daniele Pinti's Avatar Topic Author
  • Offline
  • New Member
More
8 years 4 months ago #154503 by Daniele Pinti
Replied by Daniele Pinti on topic How to set <h1> headers for item's title?
OK, thanks.
What about my first question: is there some specific reason why K2 outputs titles in <h2> tags?
Could I mess something somewhere forcing K2 to output <h1> titles?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154518 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to set <h1> headers for item's title?
It is not considered a good practise to have multiple h1 tags.
You can have more than one in HTML but too many might hurt your site's SEO.

Make sure to use overrides, getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates, the file you are looking for is the item.php one.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum