- Posts: 40
COMMUNITY FORUM
where to remove "back to top" link
- Kai Roen
-
Topic Author
- Offline
- Senior Member
Less
More
15 years 9 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.
- Thomas Anderson
-
- Offline
- New Member
Less
More
- Posts: 3
15 years 9 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
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
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
15 years 9 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
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.
- scott cameron
-
- Offline
- New Member
Less
More
- Posts: 16
14 years 10 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.
- scott cameron
-
- Offline
- New Member
Less
More
- Posts: 16
14 years 10 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.
- Wesley Phibbs
-
- Offline
- New Member
Less
More
- Posts: 16
14 years 10 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
-
- Offline
- New Member
- credit ratings matter to your ability to get credi
14 years 4 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 }
/* K2 */
.itemBackToTop{ display:none }
Please Log in or Create an account to join the conversation.
- Tim Miller
-
- Offline
- Junior Member
Less
More
- Posts: 23
14 years 2 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 --- */
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.
- Macrohard
-
- Offline
- New Member
Less
More
- Posts: 12
14 years 4 days 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
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.
- Crash Raindog
-
- Offline
- New Member
Less
More
- Posts: 6
13 years 9 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.
- At Apama
-
- Offline
- New Member
Less
More
- Posts: 10
13 years 8 months ago #70548
by At Apama
Replied by At Apama on topic where to remove "back to top" link
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!
P.S: www.yarinlar.net is my website and I'm using Joomla 1.5
P.S: www.yarinlar.net is my website and I'm using Joomla 1.5
Please Log in or Create an account to join the conversation.
- Adam Newdow
-
- Offline
- New Member
Less
More
- Posts: 1
12 years 3 months ago #70549
by Adam Newdow
Replied by Adam Newdow on topic Re: where to remove "back to top" link
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:
Please Log in or Create an account to join the conversation.