Keyword

where to remove "back to top" link

  • Kai Roen
  • Kai Roen's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 2 months ago #70538 by Kai Roen
where to remove "back to top" link was created by Kai Roen
After upgrading to K2 2.0 stable, I got "back to top" link under each item. Where can I turn of this?

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

More
15 years 2 months ago #70539 by Thomas Anderson
Replied by Thomas Anderson on topic where to remove "back to top" link
I was able to do this by making a copy of the default folder under /components/com_k2/templates
I called the copy "custom"

Then open the item.php file in an editor and go to the bottom of the file.
The Back to Top link starts at the line < div class="itemBackToTop" > I deleted the entire div block to remove the link.
The final step is to edit the K2 menu item (if you have one with multiple categories) or the categories that you want this removed and change the template from default to custom.

Hope that makes sense

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

  • Kai Roen
  • Kai Roen's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 2 months ago #70540 by Kai Roen
Replied by Kai Roen on topic where to remove "back to top" link
It can also use CSS to hide the DIV-block, with .itemBackToTop{ display:none }

Thanks.

Thomas Anderson said:I was able to do this by making a copy of the default folder under /components/com_k2/templates I called the copy "custom"

Then open the item.php file in an editor and go to the bottom of the file.
The Back to Top link starts at the line < div class="itemBackToTop" > I deleted the entire div block to remove the link.
The final step is to edit the K2 menu item (if you have one with multiple categories) or the categories that you want this removed and change the template from default to custom.

Hope that makes sense

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

More
14 years 3 months ago #70541 by scott cameron
Replied by scott cameron on topic where to remove "back to top" link
the lines you are talking about are not in the item.php file..so where is it now

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

More
14 years 3 months ago #70542 by scott cameron
Replied by scott cameron on topic where to remove "back to top" link
found it it in the k2.php not item.php

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

More
14 years 2 months ago #70543 by Wesley Phibbs
Replied by Wesley Phibbs on topic where to remove "back to top" link
Nice hide tip Kai, worked like a charm, thanks alot!

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

  • WINTHROP HINDS
  • WINTHROP HINDS's Avatar
  • Offline
  • New Member
  • credit ratings matter to your ability to get credi
More
13 years 9 months ago #70544 by WINTHROP HINDS
Replied by WINTHROP HINDS on topic where to remove "back to top" link
Just want to say that using Kai's method was easier and less annoying than DLing files and opening dreamweaver and saving it and making sure to back up the old file and repropping it.  But as a code-tard, I didn't know which CSS file to put the code in or what to do, but after futzing around a moment or two, I put in in template.css at the bottom:

 



/* K2 */

.itemBackToTop{ display:none }

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

More
13 years 7 months ago #70545 by Tim Miller
Replied by Tim Miller on topic where to remove "back to top" link
Placing this in template.css did nothing for me...

Instead for me and most likely others, it needed to be done in:

 

/components/com_k2/css/k2.css

 

I placed it at the bottom just before /* --- END --- */

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

More
13 years 4 months ago #70546 by Macrohard
Replied by Macrohard on topic where to remove "back to top" link
Cheers, thanks for this tip.  Works great.

Thomas Anderson said:
I was able to do this by making a copy of the default folder under /components/com_k2/templates I called the copy "custom"

Then open the item.php file in an editor and go to the bottom of the file.
The Back to Top link starts at the line < div class="itemBackToTop" > I deleted the entire div block to remove the link.
The final step is to edit the K2 menu item (if you have one with multiple categories) or the categories that you want this removed and change the template from default to custom.

Hope that makes sense

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

More
13 years 2 months ago #70547 by Crash Raindog
Replied by Crash Raindog on topic where to remove "back to top" link
Or you could have used .itemBackToTop{ display:none !important; } in your template.css file to make sure it overrides the css declaration made in k2.css

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


Powered by Kunena Forum