Keyword

Cannot changing <div class="componentheading"> to <h1> in tag view

  • Tutsev
  • Tutsev's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months ago - 6 years 4 months ago #170857 by Tutsev
Hello,
Cannot changing <div class="componentheading"> to <h1 class="componentheading">
I trying make tag page title H1, changing <div class="componentheading"> to <h1 class="componentheading">, but without success.

Please, help!
	<!-- Page title -->
	<h1 class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
		<?php echo $this->escape($this->params->get('page_title')); ?>
		</h1>
	<?php endif; ?>
Note:
This corrections has made in /components/com_k2/templates/default/tag.php
and in
/templates/my_template/html/com_k2/templates/my_template/tag.php
Last edit: 6 years 4 months ago by Tutsev.

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

More
6 years 4 months ago #170864 by JoomlaWorks
You only should make this change in /templates/my_template/html/com_k2/templates/my_template/tag.php, not in K2's core files. Is your site live somewhere?

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

  • Tutsev
  • Tutsev's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months ago #170868 by Tutsev

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

More
6 years 4 months ago #170871 by JoomlaWorks
The correct path is /templates/my_template/html/com_k2/my_template/tag.php not /templates/my_template/html/com_k2/templates/my_template/tag.php for your overrides (not "templates" subfolder required anymore). If your overrides exist in such a subfolder move them all to /templates/my_template/html/com_k2/my_template/.

Remember to clean your site's cache.

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

  • Tutsev
  • Tutsev's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months ago #170875 by Tutsev
I moved the folder my_template in com_K2, clean cache, but nothing change. H1 on header missing...
Attachments:

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

More
6 years 4 months ago #170883 by JoomlaWorks
First off, make sure you have selected "shine_magazine" in the item's K2 category. Secondly, cleanup your /html/com_k2/ folder. You should not use "templates" and having a folder named "item" will probably cause confusion in the long term.

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

  • Tutsev
  • Tutsev's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months ago #170925 by Tutsev
Thank you for support, Fotis!
But... When I open menu item, seted as K2 -> Tag - page title is OK - in <h1>. If I open tag page generated by K2, not from menu, page title is in <div>, not in <h1>.
I have selected "shine_magazine" in the item's K2 category and cleaned folder /html/com_k2/
I can't understand why changes in tag.php not displayed, and page titles still in <div>.
Please, help to resolve this issue!
Attachments:

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

More
6 years 4 months ago #170969 by JoomlaWorks
The template overrides may be outdated.

See this getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates and then create your own set or modify the existing overrides with new elements that may be missing.

Really, it's not difficult.

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


Powered by Kunena Forum