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

add a tab for style chooser

Jake Bunce

XenForo moderator
Staff member
Admin CP -> Appearance -> Templates -> navigation

Add the red code:

						<li><a href="{xen:link help/trophies}">{xen:phrase trophies}</a></li>
		<xen:if is="{$canChangeStyle}">
		<!-- style chooser -->
		<li class="navTab PopupClosed"><a href="{xen:link 'misc/style', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger navLink" rel="nofollow">{xen:phrase style}: {$visitorStyle.title}</a></li>
		<!-- extra tabs: end -->
		<xen:if is="{$extraTabs.end}">
		<xen:foreach loop="$extraTabs.end" key="$extraTabId" value="$extraTab">
			<xen:if is="{$extraTab.linksTemplate}">
				<li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
				<a href="{$extraTab.href}" class="navLink">{$extraTab.title}</a>
				<a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
This needs to be added to each style.

The result:

Screen shot 2011-12-07 at 3.35.02 AM.png


Well-known member
In the code that Jake wrote to you, look for:

{xen:phrase style}
And replace with this:

{xen:phrase style_chooser}
To not show the title of the style, delete the code:

So the title of the style will not appear. Just the phrase.