Keyword

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

  • At Apama
  • At Apama's Avatar Topic Author
  • Offline
  • New Member
More
13 years 3 weeks ago #99949 by At Apama
i have read all the topics about this issue but my problem is slightly different than the others. here it is:

 

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. I need it got removed! Help me, puh-leez!

 

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.

More
13 years 3 weeks ago #99950 by william white
Replied by william white on topic where can i remove the "back to top" button?
Try firebug to locate the css file in your template that is causing it

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 3 weeks ago #99951 by At Apama
Replied by At Apama on topic where can i remove the "back to top" button?
I tried it by the first time but it gives me the line:<div id="toTop" style="display: none;">^ Back to Top</div> 

 

and i can not find ANY code including "toTop" nor in the CSS or the HTML codes.

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 3 weeks ago #99952 by At Apama
Replied by At Apama on topic where can i remove the "back to top" button?
Oh I found that it also gives me the javascript code for "back to top" at the upper-line of my previously given line. But how can i deal with it?

At Apama said:
I tried it by the first time but it gives me the line:<div id="toTop" style="display: none;">^ Back to Top</div> 

 

and i can not find ANY code including "toTop" nor in the CSS or the HTML codes.

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

More
13 years 3 weeks ago #99953 by william white
Replied by william white on topic where can i remove the "back to top" button?
just above totop with firebug you can add display none....as you see the display none is overriden when you load the page.

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 3 weeks ago #99954 by At Apama
Replied by At Apama on topic where can i remove the "back to top" button?
i can add it in firebug but it does not change the source code, when i reload the page it is just the same.

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 3 weeks ago #99955 by At Apama
Replied by At Apama on topic where can i remove the "back to top" button?
can you explain a bit more with details? you know I'm a newbie in this Joomla business and need any help.

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

More
13 years 3 weeks ago #99956 by william white
Replied by william white on topic where can i remove the "back to top" button?
If you can make the necessasry change with firebug and get the desired result, then it tells you what line of code and usually the filename that you need to change. You will have to edit the file on your server and make the same change there to keep the changes.

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 3 weeks ago #99957 by At Apama
Replied by At Apama on topic where can i remove the "back to top" button?
I totally understand your point but here's the complicated thing: when i inspect the "back to top" button it just gives me the name of the "#toTop" line and the line "yarinlar.net (line 29)". "yarinlar.net" is my url and there is no such filename in my database. things are getting bad :(

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

More
13 years 2 weeks ago #99958 by Simon Wells
Replied by Simon Wells on topic where can i remove the "back to top" button?
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.


Powered by Kunena Forum