Keyword

menu item show H2 as H1

  • william antjoule
  • william antjoule's Avatar Topic Author
  • Offline
  • New Member
More
14 years 3 months ago #84093 by william antjoule
menu item show H2 as H1 was created by william antjoule
I have  menu item that points at a item. when you go to the menu item on teh front end the item title is shown as a H2, i would like to change thsi to H1.Ideas?Ww

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 11 months ago #84094 by Yiota
Replied by Yiota on topic menu item show H2 as H1
The H1 is used for the page title usually, so that is why the item title has H2. If you don't ever use the page title inside the items then you should change it to H1.

The first thing you need to do is a template override of k2 template, if not already. (It is actually a copy of the contents of the template folder in components/com_k2/templates to templates/your template/html/com_k2).

You need to modify the item.php file in templates/your template/html/com_k2/default/.

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

More
13 years 10 months ago #84095 by Travel advisor
Replied by Travel advisor on topic menu item show H2 as H1
I've changed line 46. It works, but now the validation doesn't pass:
1
end tag for element "h2" which is not open

2
end tag for "h1" omitted, but OMITTAG NO was specified

3
start tag was here
Any other files that need a change? We like to have our content clean.. Kind Regards, Dennis

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 10 months ago #84096 by Yiota
Replied by Yiota on topic menu item show H2 as H1
Just make sure that the tags of h1 and h2 open and close correctly.

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


Powered by Kunena Forum