Jump to content

Add Links to top menu?


Recommended Posts

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

 

post-557967-0-49906700-1395927880_thumb.png

Share this post


Link to post
Share on other sites

  • 3 weeks later...

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.

Share this post


Link to post
Share on other sites

  • 4 weeks later...

english please ;-)

 

 

Respect the forum language
PrestaShop 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.
  • Like 1

Share this post


Link to post
Share on other sites

  • 5 months later...

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!

Share this post


Link to post
Share on other sites

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. 

post-431588-0-35839800-1414754100_thumb.gif

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More