Keyword

where can i remove the "back to top" button?

  • At Apama
  • At Apama's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 weeks ago #99959 by At Apama
Replied by At Apama on topic where can i remove the "back to top" button?
The problem is that this "back to top" button is appearing despite I UNINSTALLED AND DELETED each and every K2 file and folder (so theres no such item.php because that there is no com_K2 folder). I am suspicious that the code that defines "Back to Top" button must be written in the installation process (before i unistalled the K2) into another code file (maybe into another module's codes I don't know) and i can not find this specific code in my database.
Simon Wells (K2 Support) said:

In the item.php, right at the very end

<div class="itemBackToTop"> <a class="k2Anchor" href="<?php echo $this->item->link; ?>#startOfPageId<?php echo JRequest::getInt('id'); ?>"><?php echo JText::_("back to top"); ?></a> </div> <div class="clr"></div>


Remove that code.

Take note, if you do this in the component template, then update-install K2, you will loose the changes.

Consider using a K2 template over ride, check out my guides on simon.getk2.org 

 

Simon

K2joom

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

  • At Apama
  • At Apama's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 weeks ago #99960 by At Apama
Replied by At Apama on topic where can i remove the "back to top" button?
Any other suggestion?

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

More
13 years 2 weeks ago #99961 by william white
Replied by william white on topic where can i remove the "back to top" button?
If you have removed k2 and all its directories and are not using a k2 item or category to display content, it must be in your template somewhere....

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

  • At Apama
  • At Apama's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 weeks ago #99962 by At Apama
Replied by At Apama on topic where can i remove the "back to top" button?
Well thats exactly what the situation is. My question till the beginning was that i can not find that code (although i searched each and every folder) but it is obvious that it is somewhere in my template. It is a K2 related problem and I just wanted to ask it in this community...

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

More
12 years 2 months ago #99963 by Harshala Fashions
Replied by Harshala Fashions on topic Re: where can i remove the "back to top" button?
I appended my template's CSS to hide 'Back to Top'

/* Added the following code to hide 'Back to Top' */
div.itemBackToTop {
display:none;
}

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


Powered by Kunena Forum