Jump to content

How can I have more buttons next to contact us?


Recommended Posts

H! Guys

I'm using PrestaShop 1.6.0.6 and I want to add extra links next to contact us & sign in links. You can see the image for clearity.

post-809122-0-11732700-1403160139.png

 

HTMLbox is good, but not good enough. It's not a button, it will create a simple link. I created the pages with custom content under cms feature, but coulnt hook the links to displayNav.

Can you guys tell me how to have extra buttons in displayNav?

Link to comment
Share on other sites

I do in these way but I think is not the best

 

 

Look for 

 

themes/YOURTHEME/modules/blockcontact/nav.tpl

themes/YOURTHEME/modules/blockuserinfo/nav.tpl

 

There is the code for the button on the nav

 

I used to put my html code inside these to add more info there

Link to comment
Share on other sites

I do in these way but I think is not the best

 

 

Look for 

 

themes/YOURTHEME/modules/blockcontact/nav.tpl

themes/YOURTHEME/modules/blockuserinfo/nav.tpl

 

There is the code for the button on the nav

 

I used to put my html code inside these to add more info there

Thank you for replay, but how this works? I should copy this code to new tpl file? Can you explain in detail (like step by step) please :)

Edited by Stealthy (see edit history)
Link to comment
Share on other sites

You need put your code inside these files at least you want to create a module

 

look the code of the files but sample

 

themes/YOURTHEME/modules/blockcontact/nav.tpl

 

 

write 

<div id="custom-link">
HERE YOUR LINK
</div>
before
 
<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>
  • Like 1
Link to comment
Share on other sites

You need put your code inside these files at least you want to create a module

 

look the code of the files but sample

 

themes/YOURTHEME/modules/blockcontact/nav.tpl[/size]

 

 

write 

<div id="custom-link">
HERE YOUR LINK
</div>

before

 

 

<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>

I used this:

 

<div id="custom-link">
<a href="http://www.taminkalabartar.com/content/3-همکاری">همکاری</a>
</div>

 

right befor

 

<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>

But result is:

My website: http://www.taminkalabartar.com/

 

My custom link goes here:

Capture.JPG

Link to comment
Share on other sites

Because you change the default theme you need add a css to fix the position

 

try put a style="float:left" on the div 

Thank you a lot :) I used id="custom-link", that was the style problem :) Changed to id="ccontact-link" and it's working.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...