Jump to content

How to add external Link or subdomain link to header menu


Recommended Posts

Hello , 

 

I wanted to add external link to header of page like Helpdesk or anything . 

 

I searched alot about it but nothing useful , i found out they way and share 

 

u need edit this file 

 

/themes/YOUR THEME/modules/blockpermanentlinks/blockpermanentlinks-header.tpl

 

Open file then add this code under <!-- Block permanent links module HEADER --> or behind any code u want for example behinde , if your themeplate support mobile you can to add same code to mobile section 

 

<li id="header_link_contact"><a class="header_links_contact" href="{$link->getPageLink('contact', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>

 

<li><a href="{'YourLink'}" title="{l s='name' mod='blockpermanentlinks'}">{l s='Name' mod='blockpermanentlinks'}</a></li>

 

YourLink :

If you want to add external link you should write like 'http://google.com'

if you want to add your subdomain link in your domain should wrote Like '/Subdomain/'

 

name :

It shown on menu header , write it on english , later you can to translate into your on language from localization .

 

Name :

it show on browser tab

 

 

Hope useful for you

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...