Jump to content

Archived

This topic is now archived and is closed to further replies.

illinimatt81

More than one Fixed Nav

Recommended Posts

illinimatt81

Short of installing a duplicate installation of DMS in a different directory on the same domain, is there a way to have a different fixed navbar on a page or set of pages and the remainder of the site having a different fixed nav bar? If that is not possible, how about different menus in the fixed nav on different pages? I'm looking to have different options show on the fixed nav bar on sales pages on my website than other pages.

Share this post


Link to post
Share on other sites
James B

Unfortunately not out of the box. That section is just activated its not got any global/local options that you could tweak on a per page basis.

 

What you could do, and this is a bit of a hack so you might need to play with it to get it to work 100%. Disable the fixed nav. Add the standard navbar in the header so it appears on every page. Add the css below which will make the standard nav fixed, on top of the page and full width so it mimics the fixednav but when the editor is active you'll still have the global/local options.

 

.navbar, .navbar-inner, .navbar-collapse {
    height: 40px;
    left: 0;
    overflow: visible;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 6000;
}

 

Things to note, if you have the wp admin bar enabled on the site then it will cover the navbar in editor mode, so disable this in your profile. The editor option/container for the navbar will still be in the original place in the editor (as you're moving it with css) so to access the options for the navbar you'll need to hover over the place it was originally position, not where it is currently displaying in the editor.

 

http://screencast.com/t/92b3ip226cv


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
illinimatt81

Thanks for this option James B. I'll try it in my dev environment. It would be great if we could assign a global/local to it in the future!

Share this post


Link to post
Share on other sites
James B

True, I've logged an enhancement request for this - https://github.com/pagelines/DMS/issues/662


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Simon
You can filter the option for the navbar. In fact you can filter ANY option on the fly.

example

https://gist.github.com/Pross/8609545

Share this post


Link to post
Share on other sites

×