-
AuthorPosts
-
October 1, 2010 at 4:15 pm #154828
Hi,
The Back to top button in the footer is hard-coded to “Top”, instead of using the language file.
(My site is in french, so the Top is replaced by Haut)Original code from footer.php:
<ul class=”ja-links”>
<li class=”layout-switcher”><?php $this->loadBlock(‘usertools/layout-switcher’) ?> </li>
<li class=”top”><a href=”<?php echo $this->getCurrentURL();?>#Top” title=”Back to Top”>Top</a></li>
</ul>I’ve modified the footer.php code to:
<ul class=”ja-links”>
<li class=”layout-switcher”><?php $this->loadBlock(‘usertools/layout-switcher’) ?> </li>
<li class=”top”><a href=”<?php echo $this->getCurrentURL();?>#Top” title=”Back to Top”><?php echo JText::_(“Top”);?></a></li>
</ul>However, when I go to a “Contacts” page, the text reverts to the the english version.
I cant seem to find where the different code is called up.Any ideas?
Thanks
October 1, 2010 at 6:16 pm #357355so what did you change? the original and your version look the same. just replace “back to top” with your own text. at least that worked for me.
October 1, 2010 at 6:24 pm #357356<em>@baud 196401 wrote:</em><blockquote>so what did you change? the original and your version look the same. just replace “back to top” with your own text. at least that worked for me.</blockquote>
Sorry about that, copy/paste error.
October 3, 2010 at 5:02 pm #357550Does anyone have any insight on why a different language file might be used depending on the page?
thanks
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
October 3, 2010 at 5:06 pm #357552Clear your browser cache and Joomla cache and try again.
October 3, 2010 at 9:41 pm #357583<em>@scotty 196674 wrote:</em><blockquote>Clear your browser cache and Joomla cache and try again.</blockquote>
I’ve flushed it several time.
Actually, I’ve also seen this problem on the user login screen.
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
October 3, 2010 at 10:07 pm #357588There is a reference to TOP in …languageen-GBen-GB.com_content.ini. maybe it is calling it from here for some pages?
Or could be another language you are using. Look for the .com_content.ini language file.
October 4, 2010 at 3:19 am #357599<em>@scotty 196715 wrote:</em><blockquote>There is a reference to TOP in …languageen-GBen-GB.com_content.ini. maybe it is calling it from here for some pages?
Or could be another language you are using. Look for the .com_content.ini language file.</blockquote>
I’ve changed the “Top” translations in the com_content.ini files in both languages I have installed (en-US and fr-FR).
The footer still reads Top. It has to be getting the tag for this specific footer from somewhere else.October 12, 2010 at 12:32 am #358510Any other suggestions?
February 17, 2011 at 4:59 am #377082i have the same problem but for a different template ja_lead.
how to remove “back to top”??
February 21, 2011 at 5:04 am #377653Does anyone know how to solve this? Its pretty irritating….. ive looked all over but i cant find it
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
February 23, 2011 at 7:05 am #378040Dear rheo99,
You can open the file of languageyour_actgived_languageyour_actgived_language.tpl_ja_purity_ii.ini file and add this line at the bottom’s file
TOP=your text goes hereI hope this would help !
yakusa Friendyakusa
- Join date:
- January 2012
- Posts:
- 32
- Downloads:
- 5
- Uploads:
- 4
- Thanks:
- 2
- Thanked:
- 10 times in 1 posts
November 29, 2012 at 11:21 am #474714Hi,
I want to remove “Back to top” link from navhelper because i moved it to be under mainnav to now its not logical.
Where to find it?
I use J2.5.6.
Many thanks!EDIT
At last! Ive got this little bastard. This one is not located in purity II template!
plugins/system/jat3/jat3/base-themes/default/blocks/navhelper.phpand remove line <li class=”top”><a href=”javascript:scroll(0,0)” title=”<?php echo JText::_(“BACK_TO_TOP”) ?>”><?php echo JText::_(‘TOP’) ?></a></li> or move to other place in template.
Thats it…
1 user says Thank You to yakusa for this useful post
-
AuthorPosts
This topic contains 14 replies, has 7 voices, and was last updated by Saguaros 12 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum