• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Remove Language choosing options

#2
In the Admin CP, go to Appearance > Templates and find the template called footer

Remove this code:

Code:
              <xen:if is="{$canChangeLanguage}">
                    <dt>{xen:phrase language}</dt>
                    <dd><a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase language_chooser}" rel="nofollow">{$visitorLanguage.title}</a></dd>
                </xen:if>
 

mistypants

Well-known member
#4
If you have only one language installed, the language changer in the footer would not display. If you do need multiple languages but simply don't want the chooser displayed in the footer:

Open the footer template. Find:
Code:
        <xen:if is="{$canChangeLanguage}">
           <dt>{xen:phrase language}</dt>
           <dd><a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase language_chooser}" rel="nofollow">{$visitorLanguage.title}</a></dd>
         </xen:if>
And comment it out:
Code:
        <xen:comment>
         <xen:if is="{$canChangeLanguage}">
           <dt>{xen:phrase language}</dt>
           <dd><a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase language_chooser}" rel="nofollow">{$visitorLanguage.title}</a></dd>
         </xen:if>
         </xen:comment>
Edit: ninja'd (or spider'd?) by spiderman.