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.
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.
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:
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.
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
Instead of opening another thread, let me ask you here. Firstly i installed K2 version 2.4.1 and then i decided to remove and use it in my second website. Everything was cool at the beginning, I removed K2 from the control panel, then checked my database to see if something went wrong but it was all perfect, not a single K2 related file or code had left in my database. But... when i had reloaded my site's index I saw that cockroach-like neverdying "back to top" button fading in when i scroll down the page. Like I said, each K2 related file got deleted but the backtotop dude is still here. It is clear that its hiding somewhere there in html codes but I cannot find it and need your kind help. Help me, puh-leez!
You bet it does. This is the best answer IMO. People editing the CSS to display:none; you are removing the K2 functionality globally, instead of per layout type. If that's what you want to do go for it. :evil: :blink: