Stealthy Posted March 19, 2015 Share Posted March 19, 2015 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. 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 More sharing options...
jgamio Posted March 19, 2015 Share Posted March 19, 2015 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 More sharing options...
Stealthy Posted March 20, 2015 Author Share Posted March 20, 2015 (edited) 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 March 20, 2015 by Stealthy (see edit history) Link to comment Share on other sites More sharing options...
jgamio Posted March 20, 2015 Share Posted March 20, 2015 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> 1 Link to comment Share on other sites More sharing options...
Stealthy Posted March 20, 2015 Author Share Posted March 20, 2015 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: Link to comment Share on other sites More sharing options...
jgamio Posted March 20, 2015 Share Posted March 20, 2015 Because you change the default theme you need add a css to fix the position try put a style="float:left" on the div 1 Link to comment Share on other sites More sharing options...
Stealthy Posted March 20, 2015 Author Share Posted March 20, 2015 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 More sharing options...
jgamio Posted March 20, 2015 Share Posted March 20, 2015 you are wlcome Link to comment Share on other sites More sharing options...
GuiLeC Posted March 24, 2015 Share Posted March 24, 2015 (edited) Doesn't work for me... Even when I delete all the content of nav.tpl, nothing happens. Edit : HtmlBox doesn't work either for displayNav Edited March 24, 2015 by GuiLeC (see edit history) Link to comment Share on other sites More sharing options...
Stealthy Posted March 25, 2015 Author Share Posted March 25, 2015 Doesn't work for me... Even when I delete all the content of nav.tpl, nothing happens. Edit : HtmlBox doesn't work either for displayNav You should hook the module to displayNav position. Link to comment Share on other sites More sharing options...
GuiLeC Posted March 25, 2015 Share Posted March 25, 2015 (edited) You should hook the module to displayNav position. I think I've already done that Edit : Nevermind, I re-install prestashop and it works now, there was a bug in my version I guess. Thanks for your response. Edited March 25, 2015 by GuiLeC (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now