dmuchamad Posted April 20, 2014 Share Posted April 20, 2014 Please help me. I'm new in prestashop. I want to add "Home", "About Us" in my prestashop 1.6 navigation bar. Thanks. Link to comment Share on other sites More sharing options...
Paulito Posted April 20, 2014 Share Posted April 20, 2014 Good morning Do you mean the Top Horizontal Menu? http://screencast.com/t/dTULKN3yw Paul Link to comment Share on other sites More sharing options...
dmuchamad Posted April 20, 2014 Author Share Posted April 20, 2014 No. But in top navigation bar as you can see from my image. Link to comment Share on other sites More sharing options...
vekia Posted April 20, 2014 Share Posted April 20, 2014 open this file: themes/default-bootstrap/modules/blockcontact/nav.tpl add there code: <div class="header_user_info"> <a href="{$link->getPageLink('index', true)|escape:'html':'UTF-8'}" title="{l s='Home' mod='blockcontact'}">{l s='Home' mod='blockcontact'}</a> </div> <div class="header_user_info"> <a href="{$link->getCmsLink('4')|escape:'html':'UTF-8'}" title="{l s='About us' mod='blockcontact'}">{l s='About us' mod='blockcontact'}</a> </div> effect 4 1 Link to comment Share on other sites More sharing options...
myselfidem Posted April 22, 2014 Share Posted April 22, 2014 (edited) Thanks vekia, works fine ! It's possible to match the language file for this tabs to be displayed ? Edited April 25, 2014 by myselfidem (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 22, 2014 Share Posted April 22, 2014 i don't understand, sorry you mean that you want to translate these fields? sorry for my misunderstanding once again 1 Link to comment Share on other sites More sharing options...
myselfidem Posted April 22, 2014 Share Posted April 22, 2014 (edited) Sorry about my bad English. Solved. Using Inside the BO : LOCALISATION | Traductions. Writing the missing translated fields and all is fine now. Thanks vekia Edited April 25, 2014 by myselfidem (see edit history) Link to comment Share on other sites More sharing options...
Goyo Posted May 14, 2014 Share Posted May 14, 2014 open this file: themes/default-bootstrap/modules/blockcontact/nav.tpl add there code: <div class="header_user_info"> <a href="{$link->getPageLink('index', true)|escape:'html':'UTF-8'}" title="{l s='Home' mod='blockcontact'}">{l s='Home' mod='blockcontact'}</a> </div> <div class="header_user_info"> <a href="{$link->getCmsLink('4')|escape:'html':'UTF-8'}" title="{l s='About us' mod='blockcontact'}">{l s='About us' mod='blockcontact'}</a> </div> effect Hi vekia, Do you know the code to insert "Sitemap" link in the nav bar together wiht "About us", "Contact us"...? Thanks in advance. Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2014 Share Posted May 14, 2014 Hi vekia, Do you know the code to insert "Sitemap" link in the nav bar together wiht "About us", "Contact us"...? Thanks in advance. just use: <div class="header_user_info"> <a href="{$link->getPageLink('sitemap')|escape:'html':'UTF-8'}" title="{l s='Sitemap' mod='blockcontact'}"> {l s='Sitemap' mod='blockcontact'} </a> </div> 2 Link to comment Share on other sites More sharing options...
Goyo Posted May 14, 2014 Share Posted May 14, 2014 just use: <div class="header_user_info"> <a href="{$link->getPageLink('sitemap')|escape:'html':'UTF-8'}" title="{l s='Sitemap' mod='blockcontact'}"> {l s='Sitemap' mod='blockcontact'} </a> </div> Thanks vekia, it's working!!! Link to comment Share on other sites More sharing options...
jaychennai Posted October 5, 2014 Share Posted October 5, 2014 (edited) how do i get the Home link as first link ?? Edited October 5, 2014 by jaychennai (see edit history) Link to comment Share on other sites More sharing options...
Paulito Posted October 5, 2014 Share Posted October 5, 2014 Hello You do not say which PS version or theme you are using but the default theme now has this control Go to: Back office > Modules > Modules > Front office features > Configure http://screencast.com/t/zpk0cn0DpPN Paul Link to comment Share on other sites More sharing options...
kevian Posted February 17, 2015 Share Posted February 17, 2015 re the above salution if i wanted to add an external link to that menu what would be the code to enter ? thanks in advance. Link to comment Share on other sites More sharing options...
jetx Posted April 15, 2015 Share Posted April 15, 2015 You can use something like this: <div class="header_user_info"> <a rel="external" href="http://www.whatever.com">{l s='Whatever' mod='blockcontact'}</a></div> Link to comment Share on other sites More sharing options...
Orien Posted April 17, 2015 Share Posted April 17, 2015 Hello i used this code <a href="{$link->getCmsLink('4')|escape:'html':'UTF-8'}" title="{l s='About us' mod='blockcontact'}">{l s='About us' mod='blockcontact'}</a> But it's not translating to the default site language. Can anyone help me please? Link to comment Share on other sites More sharing options...
amishraval Posted May 4, 2015 Share Posted May 4, 2015 How can I add Marquee on this tab, moving from contact Us to Phone number? Link to comment Share on other sites More sharing options...
aivazo Posted May 13, 2015 Share Posted May 13, 2015 open this file: themes/default-bootstrap/modules/blockcontact/nav.tpl add there code: <div class="header_user_info"> <a href="{$link->getPageLink('index', true)|escape:'html':'UTF-8'}" title="{l s='Home' mod='blockcontact'}">{l s='Home' mod='blockcontact'}</a> </div> <div class="header_user_info"> <a href="{$link->getCmsLink('4')|escape:'html':'UTF-8'}" title="{l s='About us' mod='blockcontact'}">{l s='About us' mod='blockcontact'}</a> </div> effect how can add custom URL ? for example google.com Thanks Chris Link to comment Share on other sites More sharing options...
jewelrystore.pk Posted December 7, 2015 Share Posted December 7, 2015 Thnxs vekia Link to comment Share on other sites More sharing options...
Kozlo Posted February 22, 2016 Share Posted February 22, 2016 Hi, I face the same problem here but seems that your solution doesn't affect my page. I tried to edit the themes/default-bootstrap/modules/nav.tpl with the code you suggested Vekia but nothing happened. Do you have any suggestion why this happened? If you need I can provide you links and permissions to take a look. Link to comment Share on other sites More sharing options...
puspo Posted March 22, 2016 Share Posted March 22, 2016 Hi, I face the same problem here but seems that your solution doesn't affect my page. I tried to edit the themes/default-bootstrap/modules/nav.tpl with the code you suggested Vekia but nothing happened. Do you have any suggestion why this happened? If you need I can provide you links and permissions to take a look. Try my solution.. !important: Locate temp file (cache) (search for it via totalcmd) and backup it. Searh for some kind of unique html tag in your code. Turn on Force compile and make sure you have turned down Cache underneath Force compile.. edit nav.tpl following file and upload it back. /themes/default-bootstrap/modules/blockcontact/nav.tpl Refresh your shiny websites.. Better? Link to comment Share on other sites More sharing options...
noodles57 Posted August 11, 2016 Share Posted August 11, 2016 themes/MY-THEME/modules/blockcontact/nav.tpl this doesn't do anything Link to comment Share on other sites More sharing options...
Anca - soromania.com Posted October 24, 2016 Share Posted October 24, 2016 Hello, I also have two small questions. I added the code below but: 1. I try to add "About us" before "Contact us" in both languages, RO and EN. The code was added after Contact us and I need it befor Contact us. 2. I dont know how to put the Romanian translation. So the code looks like this (the website is www.soromania.com). Where do I do wrong? Thank you in advance. <div class="header_user_info"> <a href="{$link->getCmsLink('4')|escape:'html':'UTF-8'}" title="{l s='About us' mod='blockcontact'}">{l s='About us' mod='blockcontact'}</a> </div> <div id="contact-link" {if isset($is_logged) && $is_logged} class="is_logged"{/if}> <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{if isset($is_logged) && $is_logged} is_logged{/if}"> <i class="icon-phone"></i>{l s='Call us now:' mod='blockcontact'} <strong>{$telnumber}</strong> </span> {/if} Link to comment Share on other sites More sharing options...
ALEXCNX Posted December 2, 2016 Share Posted December 2, 2016 2. I dont know how to put the Romanian translation. I've created a custom CMS page in 2 languages. This solution works but indeed pulls the same title (for both languages), which is indicated in this part: {l s='My Custom Page' mod='blockcontact'}</a> How do you have this work for the other language? Thanks! Link to comment Share on other sites More sharing options...
Goyo Posted December 2, 2016 Share Posted December 2, 2016 Hi ALEXCNX, go to "Localization" --> "Translations". In the area "MODIFY TRANSLATIONS": ->> Type of translation: Select "Installed modules translations" ->> Select your theme ->> Select the language you want to modify the translations and seach by My Custom Page or the title you want to translate. Regards. Goyo. Link to comment Share on other sites More sharing options...
ALEXCNX Posted December 2, 2016 Share Posted December 2, 2016 Awesome! I couldn't find it as it was hidden under DEFAULT-BOOTSTRAP - NAV. Thanks much, Goyo! Link to comment Share on other sites More sharing options...
Goyo Posted December 2, 2016 Share Posted December 2, 2016 You are wellcome. Regards. Link to comment Share on other sites More sharing options...
Nandos Posted March 10, 2017 Share Posted March 10, 2017 (edited) That works perfectly, thanks. The problem is, when i open the site on mobile and i login, the default "contact us" line doesn't appaer anymore. Instead, i correctly see the custom line. The problem appaers only when logged in. Looks like the lenght of the username hides the line at the extreme left. Site and screenshot. Requesting help, let me know guys Ok, found the css of that one, i fixed it, but looks awful on mobile. Any advice about how i could edit it to appaer better on mobile? Thanks in advance. Edit: nevermind, i think i fixed it forcing the float to the right on the css on the resolution exceptions for mobile. I even showed up the telephone number now. Better than nothing Now, it's possible to add a little space after the number? Edit2: removed for now, i just aligned to the right the phone number. Very useful thread tho, thanks. Edited March 10, 2017 by Nandos (see edit history) Link to comment Share on other sites More sharing options...
noodles57 Posted March 10, 2017 Share Posted March 10, 2017 As suggested in another thread, I installed the module HTMLbox and got the same solution, although I do like updating code when possibly. Only problem with that is I've updated so many .tpl files that I'm sure I can't update Prestashop or I'd lose everything - correct?? Link to comment Share on other sites More sharing options...
akbsandy7 Posted November 7, 2017 Share Posted November 7, 2017 (edited) Please help me. I'm new in prestashop. I want to add "Seller Panel" in my prestashop 1.6 navigation bar. Thanks Tried: /themes/default-bootstrap/modules/blockcontact/nav.tpl <div class="header_user_info"> <a rel="external" href="http://www.seller.manufacturerbox.com">{l s='Seller Panel' mod='blockcontact'}</a></div> not working please help thanks in advance Edited November 7, 2017 by akbsandy7 notifiaction (see edit history) Link to comment Share on other sites More sharing options...
noodles57 Posted March 13, 2018 Share Posted March 13, 2018 As I stated above, all the suggestions the admins offered do not work. You need to install a module called HTMLbox in order to update the topmost menu: Modules and Services / htmlbox NOTE: This is for PS 1.6.x. I have not yet completely used the latest version so updating could possibly be different as I am seeing there are many updates to V1.7 themes/default-bootstrap/modules/blockcontact/nav.tpl or themes/yourtheme/modules/blockcontact/nav.tpl NONE OF THESE WORK Link to comment Share on other sites More sharing options...
Yosoyebj Posted July 28, 2019 Share Posted July 28, 2019 On 4/21/2014 at 3:17 AM, vekia said: open this file: themes/default-bootstrap/modules/blockcontact/nav.tpl add there code: <div class="header_user_info"> <a href="{$link->getPageLink('index', true)|escape:'html':'UTF-8'}" title="{l s='Home' mod='blockcontact'}">{l s='Home' mod='blockcontact'}</a> </div> <div class="header_user_info"> <a href="{$link->getCmsLink('4')|escape:'html':'UTF-8'}" title="{l s='About us' mod='blockcontact'}">{l s='About us' mod='blockcontact'}</a> </div> effect i tried this but failed. I cant open my website after i added this code.Please help me Link to comment Share on other sites More sharing options...
franky.martin Posted August 22, 2019 Share Posted August 22, 2019 Hi, I would like to add the email shop in DisplayNav1. I have tried editing Nav.tpl but I don´t know the code to show the email of the shop (I am working in a multistore PS 1.7.4.4, so I cant write the email as text because every shop has a diferent email). Thanks Link to comment Share on other sites More sharing options...
Micael Posted October 27, 2020 Share Posted October 27, 2020 hello, Vekia how can i put an envelope to send email at the top like dmuchamad where it contains the login and the survey. im sorry my english. 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