Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • achkars Friend
    #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

    baud Friend
    #357355

    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.

    achkars Friend
    #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.

    achkars Friend
    #357550

    Does anyone have any insight on why a different language file might be used depending on the page?

    thanks

    scotty Friend
    #357552

    Clear your browser cache and Joomla cache and try again.

    achkars Friend
    #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 Friend
    #357588

    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.

    achkars Friend
    #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.

    achkars Friend
    #358510

    Any other suggestions?

    rheo99 Friend
    #377082

    i have the same problem but for a different template ja_lead.

    how to remove “back to top”??

    rheo99 Friend
    #377653

    Does anyone know how to solve this? Its pretty irritating….. ive looked all over but i cant find it

    Sherlock Friend
    #378040

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

    I hope this would help !

    yakusa Friend
    #474714

    Hi,
    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.php

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

    Saguaros Moderator
    #474774

    Glad you get it sorted and thanks for sharing.

    Best Regards.

Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 14 replies, has 7 voices, and was last updated by  Saguaros 11 years, 12 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum