Jump to content

[SOLVED] Add CMS link in Blockcontact


MonsterM

Recommended Posts

Hello,
 
I have just installed 1.6 and this will be my first post in this forum.
 
I'm struggling to add a new link in the blockcontact in the header. I think that I should do the changes in nav.tpl but not sure how to write in. 
 
The only information in nav.tpl today is:
 
<div id="contact-link">

<a href="{$link->getPageLink('contact', true)|escape:'html':'UTF-8'}" title="{l s='Contact Us' mod='blockcontact'}">{l s='Contact us' mod='blockcontact'}</a>

</div>
{if $telnumber}

<span class="shop-phone">

<i class="icon-phone"></i>{l s='Call us now:' mod='blockcontact'} <strong>{$telnumber}</strong>

</span>
{/if}
 
If I would a link to for example to CMS "About Us", how should I write it?

 

It would be great if someone could help me with this.

 

Kind regards

Link to comment
Share on other sites

Hello and Welcome!

 

Put this:

<a href="{$link->getPageLink('cms.php?id_cms=4')|escape:'html':'UTF-8'}"  title="{l s='About Us' mod='blockcontact'}">{l s='About us' mod='blockcontact'}</a>

just after

<i class="icon-phone"></i>{l s='Call us now:' mod='blockcontact'} <strong>{$telnumber}</strong>

Change 4 in "cms.php?id_cms=4" to whatever ID your CMS page have.

  • Like 3
Link to comment
Share on other sites

×
×
  • Create New...