Keyword

How to remove "back to top"?

  • shenkwen
  • shenkwen's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 10 months ago #59108 by shenkwen
How to remove "back to top"? was created by shenkwen
I want to remove the "back to top" link at the bottom of every item view page? Is there any way to do it through back-end or do I need to modify PHP file?

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

More
12 years 10 months ago #59109 by Patrick Raabe
Replied by Patrick Raabe on topic Re: How to remove "back to top"?
Hi,

I don't know the patch where you can find that function, but I would propose you to edit your template css.

for example by adding/customising :
.itemBackToTop {

display:none;

}

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

  • shenkwen
  • shenkwen's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 10 months ago #59110 by shenkwen
Replied by shenkwen on topic Re: How to remove "back to top"?
thanks a lot! that's a great way to do it other than editting php file.

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

  • Muhammad Shoaib Ali
  • Muhammad Shoaib Ali's Avatar
  • Offline
  • Junior Member
  • Infinity is something we cannot calculate yet.
More
12 years 10 months ago #59111 by Muhammad Shoaib Ali
Replied by Muhammad Shoaib Ali on topic Re: How to remove "back to top"?
Just in case....(This is adviced against doing and the solution Patrick provided is the best way).

You can remove it from the template/yourtemplate/html/com_k2/templates/default/item.php

You would have to remove
<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>

What I would suggest however is dont hide Back To Top...Insted you can display an attractive website branded image there. If you have a website that displays good length information per page then the users love things like Back To Top.

The only reason why we say something is infinity is because we cannot calculate it yet…and there are some things we will never be able to calculate.

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


Powered by Kunena Forum