Keyword

"Go to top" button on category view.

  • Michał
  • Michał's Avatar Topic Author
  • Offline
  • Senior Member
More
9 years 9 months ago #135099 by Michał

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #135123 by Krikor Boghossian
Replied by Krikor Boghossian on topic "Go to top" button on category view.
This is the code that generates the back to top button.
	<?php if(!JRequest::getCmd('print')): ?>
	<div class="itemBackToTop">
		<a class="k2Anchor" href="<?php echo $this->item->link; ?>#startOfPageId<?php echo JRequest::getInt('id'); ?>">
			<?php echo JText::_('K2_BACK_TO_TOP'); ?>
		</a>
	</div>
	<?php endif; ?>

You need to paste it in the bottom of the category.php file.

This post will help you locate the files.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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