Jump to content

Moving primary and secondary nav to the top


olliedog

Recommended Posts

Hi,

Ive been struggling with this for a week or so, all the documentation details adding and removing items to/from the primary nav with hooks etc, but nothing I can find details moving the primary and secondary nav to the top navigation bar of the page, so we only have one navigation bar at the top and not two. Ive tried a couple of things, but always break the templates

Can someone point me to the right information to achieve this?

thanks

Andy

nav.png

Link to comment
Share on other sites

Hi Andy,

59 minutes ago, olliedog said:

Ive been struggling with this for a week or so, all the documentation details adding and removing items to/from the primary nav with hooks etc, but nothing I can find details moving the primary and secondary nav to the top navigation bar of the page, so we only have one navigation bar at the top and not two. Ive tried a couple of things, but always break the templates

moving, in this sense, has little to do with hooks and more to do with tweaking the templates - in this case, usually header.tpl

for example, if I swap the positions of the "main-menu" and "header" sections in header.tpl, that moves the navbar menu to the top and the header beneath it...

UnFWL7U.png

now in your case, possibly you'll have to split the navbar layout into 3 - logo on left, primary navbar in middle and notifications on the right - but bear in mind that there will be lots of issues that you might run into.... one being that notifications are only applicable to logged in clients (yeah I can see your example navbar is logged in), but what happens for users not logged in? what happens to the existing links in the secondary navbar if you aren't going to show it?? how will it work on mobiles ???

the primary menu content itself can still be modified with a hook, but it's location and what's going on around it has more to with the template(s) and manipulating the html/css & Smarty within it.

Link to comment
Share on other sites

Hi Brian,

46 minutes ago, brian! said:

the primary menu content itself can still be modified with a hook, but it's location and what's going on around it has more to with the template(s) and manipulating the html/css & Smarty within it.

thanks for the comments, I though it might be quite easy todo, but it seems its not, Im not a developer, and don't understand Smarty templates, so will leave it as is.

thanks for the help

Andy

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated