Keyword

How to change "back to top" with "back" link.

  • Leonardo L.
  • Leonardo L.'s Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 5 months ago #96160 by Leonardo L.
Hello,

 

is it possible to remove the  items' bottom link "back to top" with a new one called "back" to come back at the previous page?

 

I had looking at items.php (under the folder templates) and I find this lines

 

<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>

 

How can I set it?

Do I change #startOfPageId with?

 

Thanks. 

 

Ps. I'm using Joomla 1.5

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 5 months ago #96161 by Yiota
You just need to replace it with

 

<div class="itemBack">        <a class="k2Anchor" href="javascript:history.go(-1)"><?php echo JText::_("back"); ?></a></div>

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

  • Leonardo L.
  • Leonardo L.'s Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 4 months ago #96162 by Leonardo L.
Replied by Leonardo L. on topic How to change "back to top" with "back" link.
wow, thanks!!!

It works perfectly :)

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


Powered by Kunena Forum