Jump to content

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

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

Hay alguna manera de trasplantar el modulo que comentas a displayNav. porque no deja hacerlo

Share this post


Link to post
Share on other sites

Buenos días Nemo

 

El modulo funciona correctamente.

Donde cambio el archivo php? y por cual

 

Gracias

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites

displayHeader won't show up as it displays in the <head> tag. You need to use hookDisplayTop for the page's "physical" header :)

Share this post


Link to post
Share on other sites

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

Ah, you only need to move it up from Modules > Positions (find displayTop)

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

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

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.

post-431588-0-45542500-1415111115_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

Thanks Vekia.   That's what I ended up doing but I was hoping to find a clean way that wouldn't get overwritten later.

Share this post


Link to post
Share on other sites

I downloaded HTMLBox

But I only get these the below hook options.  I don't see displayNav.

 

logo.gifHTMLbox configuration Where to display HTMLbox ?

header:

top:

left column:

right column:

footer:

home:

Edited by dformica (see edit history)

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

×
×
  • Create New...

Important Information

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