Support Team
posted this
01 June 2015
Hello
Sorry for the delay.
I want only "register" appaer when you aren't logged in or if you don't have an account yet. Else I don't want to see the register link/button.
Unfortunately Themler does not have such built-in functionality.
To add additional link to the top menu you will need to edit theme files manually.
open public_html\themes[theme_name]\includes\topmenu_1.tpl file
there is {if $logged}loop in this file. If you want to add a link which should appear only if you're not logged in you should add it outside this loop after the {else} tag.
in the same file you can remove "your name":
<li class=" bd-menuitem-1">
<a href="{$link->getPageLink('my-account', true)}" title="{l s='View my customer account'}" account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
</li>
Please note that saving theme in Themler may erase all custom changes. So I suggest that you either make changes to the final theme or do not make any changes to the Top menu control in the future.
Please keep us posted about the progress.
Thank you,
Olivia
Hello
Sorry for the delay.
> I want only "register" appaer when you aren't logged in or if you don't have an account yet. Else I don't want to see the register link/button.
Unfortunately Themler does not have such built-in functionality.
To add additional link to the top menu you will need to edit theme files manually.
- open <tt>public_html\themes\[theme_name]\includes\topmenu_1.tpl</tt> file
- there is `{if $logged}`loop in this file. If you want to add a link which should appear only if you're not logged in you should add it outside this loop after the `{else}` tag.
- in the same file you can remove "your name":
`<li class=" bd-menuitem-1">
<a href="{$link->getPageLink('my-account', true)}" title="{l s='View my customer account'}" account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
</li>`
Please note that saving theme in Themler may erase all custom changes. So I suggest that you either make changes to the final theme or do not make any changes to the Top menu control in the future.
Please keep us posted about the progress.
Thank you,
Olivia