Stormraven
Trusted Member
- Joined
- Oct 24, 2010
- Messages
- 1,836
This a template tweak, but only a very small one. I decided to hide the style and language chooser from view on my site and decided to share how I went about doing it with the community.
It's always good practise to comment out code so that if you want to revert back, you can easily do so.
To hide the style chooser, open up the footer template and find:
Replace with:
To hide the language chooser, open up the footer template and find:
Replace with:
Or to hide both, you'll simply need one set of comment around both sections of code. Alternatively if you want to limit the style or language chooser to certain member groups, you can find the conditionals to do so here.
Enjoy
It's always good practise to comment out code so that if you want to revert back, you can easily do so.
To hide the style chooser, open up the footer template and find:
Code:
<xen:if is="{$canChangeStyle} OR {$canChangeLanguage}">
<dl class="choosers">
<xen:if is="{$canChangeStyle}">
<dt>{xen:phrase style}</dt>
<dd><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}">{$visitorStyle.title}</a></dd>
</xen:if>
Replace with:
Code:
<!--<xen:if is="{$canChangeStyle} OR {$canChangeLanguage}">
<dl class="choosers">
<xen:if is="{$canChangeStyle}">
<dt>{xen:phrase style}</dt>
<dd><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase style_chooser}">{$visitorStyle.title}</a></dd>
</xen:if>-->
To hide the language chooser, open up the footer template and 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}">{$visitorLanguage.title}</a></dd>
</xen:if>
</dl>
</xen:if>
Replace with:
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}">{$visitorLanguage.title}</a></dd>
</xen:if>
</dl>
</xen:if>-->
Or to hide both, you'll simply need one set of comment around both sections of code. Alternatively if you want to limit the style or language chooser to certain member groups, you can find the conditionals to do so here.
Enjoy
