prestashop_newuser Posted March 27, 2014 Share Posted March 27, 2014 Hi, I am doing a theme in prestashop 1.6.0.5. In this theme the default top menu links are Contact Us, Sign In. Here I want to add some more menus like Login, Register, About Us, Terms And Conditions of Use So can someone kindly tell me how to add links in this section? I have attached the reference Image what I want in result Any help and suggestions will be really appreciable. Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted March 29, 2014 Share Posted March 29, 2014 You need to create a module and hook it to displayNav You can use my free module here and change the php file so it hooks there: http://store.nemops.com/free-modules/30-prestashop-header-links.html#.UzaSuPk7ur0 1 Link to comment Share on other sites More sharing options...
dsc54000 Posted April 14, 2014 Share Posted April 14, 2014 You need to create a module and hook it to displayNav You can use my free module here and change the php file so it hooks there: http://store.nemops.com/free-modules/30-prestashop-header-links.html#.UzaSuPk7ur0 I tested your module and seems to work. Can you help on the edit i need to do in the .php file to put it on the very top Is it also possible to use internal links, but without having to copy/paste the URL. Thanks. Link to comment Share on other sites More sharing options...
aguaycafe Posted May 9, 2014 Share Posted May 9, 2014 Hay alguna manera de trasplantar el modulo que comentas a displayNav. porque no deja hacerlo Link to comment Share on other sites More sharing options...
aguaycafe Posted May 14, 2014 Share Posted May 14, 2014 Buenos días Nemo El modulo funciona correctamente. Donde cambio el archivo php? y por cual Gracias Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2014 Share Posted May 14, 2014 english please ;-) Respect the forum languagePrestaShop brings together communities from around the world; the forums are divided into different languages.Thank you for posting in the corresponding language to that forum. 1 Link to comment Share on other sites More sharing options...
dformica Posted October 28, 2014 Share Posted October 28, 2014 I can't move the module to "displayHeader" It says it's hooked there but it doesn't show there. It shows below the main navigation. I'm on v1.6.0.9 default theme Link to comment Share on other sites More sharing options...
NemoPS Posted October 29, 2014 Share Posted October 29, 2014 displayHeader won't show up as it displays in the <head> tag. You need to use hookDisplayTop for the page's "physical" header Link to comment Share on other sites More sharing options...
dformica Posted October 29, 2014 Share Posted October 29, 2014 displayHeader won't show up as it displays in the <head> tag. You need to use hookDisplayTop for the page's "physical" header I currently have it hooked to: displayHeader displayTop But the link still shows below my main navigation. I want it to show at the very top, next to Sign in | contact us (I'm on v1.6) Thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted October 31, 2014 Share Posted October 31, 2014 Ah, you only need to move it up from Modules > Positions (find displayTop) Link to comment Share on other sites More sharing options...
dformica Posted October 31, 2014 Share Posted October 31, 2014 I wasn't able to move displayTop up. So I've removed the hook for displayHeader and left only displayTop (see image). I have tried Live Edit as well to no avail... I still see the link showing under the main/top navigation. Link to comment Share on other sites More sharing options...
NemoPS Posted November 1, 2014 Share Posted November 1, 2014 Hm, no you have to display all modules by directly clicking on modules>positions, not just the one you want to move. Then you can drag it above the menu Link to comment Share on other sites More sharing options...
dformica Posted November 4, 2014 Share Posted November 4, 2014 Thanks Nemo1. Is there a way to make it show inside the top bar with the links Sign in | Contact us? Is that possible? Because currently it looks floating out of place. Link to comment Share on other sites More sharing options...
vekia Posted November 4, 2014 Share Posted November 4, 2014 Thanks Nemo1. Is there a way to make it show inside the top bar with the links Sign in | Contact us? Is that possible? Because currently it looks floating out of place. check this: http://www.prestashop.com/forums/topic/324905-how-to-add-new-linkblock-in-navigation-bar/ or this: http://mypresta.eu/en/art/basic-tutorials/header-links-prestashop.html if you don't want to modify .tpl files 1 Link to comment Share on other sites More sharing options...
dformica Posted November 4, 2014 Share Posted November 4, 2014 Thanks Vekia. That's what I ended up doing but I was hoping to find a clean way that wouldn't get overwritten later. Link to comment Share on other sites More sharing options...
dformica Posted November 4, 2014 Share Posted November 4, 2014 (edited) I downloaded HTMLBox But I only get these the below hook options. I don't see displayNav. HTMLbox configuration Where to display HTMLbox ? header: top: left column: right column: footer: home: Edited November 4, 2014 by dformica (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