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

Discussion in 'XenForo Questions and Support' started by ramonbastos, Aug 9, 2013.

  1. ramonbastos

    ramonbastos Member

    Hello, how do I remove the language choosing options in the bottom of the forum?
     
  2. spiderman

    spiderman Member

    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>
     
    ramonbastos likes this.
  3. ramonbastos

    ramonbastos Member

    thank you
     
  4. mistypants

    mistypants Well-Known Member

    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.
     
    ramonbastos and spiderman like this.
  5. ramonbastos

    ramonbastos Member

    Thanks for the help guys. It worked
     
    mistypants likes this.

Share This Page