Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

remove - back to top - scroll up feature

  • Aaron Brender
  • Aaron Brender's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 months ago #138847 by Aaron Brender
remove - back to top - scroll up feature was created by Aaron Brender
I did try and search the forums but I get a 404 error everytime I do so.

I am looking to remove the "back to top" scrolling feature when viewing an item. I am sure it is a feature that I am not visually picking up on when looking at the settings. Thanks in advance if someone can correct my ignorance.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 5 months ago #138848 by Krikor Boghossian
Replied by Krikor Boghossian on topic remove - back to top - scroll up feature
Not a matter of ignorance mate.
There isn't a setting for this.
Locate the item.php file located under the /templates/nokkori/html/com_k2/default folder.

Once you 've opened it, scroll to the bottom and remove (or comment our) the following block of code.
<?php if(!JRequest::getCmd('print')): ?>
	<div class="itemBackToTop">
		<a class="k2Anchor" href="<?php echo $this->item->link; ?>#startOfPageId<?php echo JRequest::getInt('id'); ?>">
		  <i class="icon-up-open"></i>
			<?php echo JText::_('K2_BACK_TO_TOP'); ?>
		</a>
	</div>
	<?php endif; ?>

roughly at the lines 882-889

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

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

  • Aaron Brender
  • Aaron Brender's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 months ago #138849 by Aaron Brender
Replied by Aaron Brender on topic remove - back to top - scroll up feature
Perfect... thank you sir.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 5 months ago #138850 by Krikor Boghossian
Replied by Krikor Boghossian on topic remove - back to top - scroll up feature
You 're welcome Aaron.

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