Keyword

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

  • Tutsev
  • Tutsev's Avatar Topic Author
  • Offline
  • New Member
More
1 week 6 hours ago - 1 week 6 hours ago #170857 by Tutsev
Tutsev created the topic: Cannot changing <div class="componentheading"> to <h1> in
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: 1 week 6 hours ago by Tutsev.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 days 7 hours ago #170864 by Fotis
Fotis replied the topic: Cannot changing <div class="componentheading"> to <h1> in
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?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Tutsev
  • Tutsev's Avatar Topic Author
  • Offline
  • New Member
More
6 days 7 hours ago #170868 by Tutsev
Tutsev replied the topic: Cannot changing <div class="componentheading"> to <h1> in

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 days 7 hours ago #170871 by Fotis
Fotis replied the topic: Cannot changing <div class="componentheading"> to <h1> in
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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Tutsev
  • Tutsev's Avatar Topic Author
  • Offline
  • New Member
More
6 days 4 hours ago #170875 by Tutsev
Tutsev replied the topic: Cannot changing <div class="componentheading"> to <h1> in
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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 days 4 hours ago #170883 by Fotis
Fotis replied the topic: Cannot changing <div class="componentheading"> to <h1> in
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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Tutsev
  • Tutsev's Avatar Topic Author
  • Offline
  • New Member
More
3 days 6 hours ago #170925 by Tutsev
Tutsev replied the topic: Cannot changing <div class="componentheading"> to <h1> in
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.

Moderators: william white