XF 2.0 Hide language chooser

duderuud

Well-known member
I would like to hide English for the frontend (so in the footer and in the user profile) but still use it for the backend.

Which templates need to be changed to accomplish this?
 
Last edited:
Edit the PAGE_CONTAINER template, find the following:

Code:
<xf:if is="$xf.visitor.canChangeLanguage()">
                            <li><a href="{{ link('misc/language') }}" data-xf-click="overlay"
                                data-xf-init="tooltip" title="{{ phrase('language_chooser')|for_attr }}" rel="nofollow">
                                <i class="fa fa-globe" aria-hidden="true"></i> {$xf.language.title}</a></li>
                        </xf:if>

And change it to this:

Code:
<!--<xf:if is="$xf.visitor.canChangeLanguage()">
                            <li><a href="{{ link('misc/language') }}" data-xf-click="overlay"
                                data-xf-init="tooltip" title="{{ phrase('language_chooser')|for_attr }}" rel="nofollow">
                                <i class="fa fa-globe" aria-hidden="true"></i> {$xf.language.title}</a></li>
                        </xf:if>-->
 
Back
Top Bottom