Jump to content

Archived

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

contentedrich

Possible to use two menus (for different pages) in the Navbar?

Recommended Posts

contentedrich    0
contentedrich

Hi,

 

Just trying to work out a way of using two different menus in the Navbar (only one at a time) - any ideas? I don't want to have to set up two different sites.

 

Basically, it's for a personal site, and when a visitor comes to the homepage, I'd like them to be offered two options - a personal site (with personal interests and a blog section with filtered posts for my personal interests), or a professional site (with content more akin to a CV or resume, and a blog section with posts filtered for professional stuff). Then each version would have a different menu at the top.

 

Can anyone recommend a method of achieving the two different menus? I don't mind purchasing sections if it achieves my goal.

Thanks!

 

Rich

Share this post


Link to post
Share on other sites
Rob    547
Rob

Rich,

 

There are a few ways to approach this, depending on your license type. 

 

If your license is Basic (one website), then I'd set it up with the NavBar generally, but I'd create a 2nd saved menu at Dashboard > Appearance > Menus.   Because the Header in DMS is global, you'll have to use custom CSS code to hide the NavBar on those pages where you don't want it. That would be like:

.page-id-XX, .page-id-XXX .navbar {display: none;}  where XX and XXX represent the WP assigned page numbers.   When creating the custom 2nd saved menu, make sure to click Screen Options, and check the box for Custom Classes.   In each menu item, you'll want to put a unique term for that menu, like my-hobby-sb and save the menu.

 

On those pages, add Custom Menu as a sidebar widget from Dashboard > Appearance > Widgets and select the 2nd saved menu created at Appearance > Menus. 

Using a plugin called "Widget Logic" you can tell the Custom Menu widget to appear ONLY on those pages where the NavBar is hidden.   Then, with CSS, you can style the sidebar menu as such:

.my-hobby-sb {color: white;

background-color: blue;

font-size: 0.8em;

line-height: 1em;

}

.my-hobby-sb a {color: #e2e2e2;

background-color: #C00000;

}

.my-hobby-sb hover {color: yellow;

background-color: navy;

}

 

Of course, you'd use any colors of your choice, and any CSS elements are yours to add or use as pleased.

 

The next method is if you have a Pro or Developer license. 

Create a folder in your site for the secondary level of interest.  Install WP there in addition to your primary installation.  Give it a new database. Add DMS as the theme.

Set up your NavBar, as normal and include links in both the main and secondary sites to connect back and forth. That way, you'll have the exact same look and feel (you can use DMS to make an exportable child theme from the main and use in the secondary), and you'll be able to provide the means of flipping back and forth, seamlessly between the two installs. In the secondary, your saved menu is different, so your visitors see the same site with 2 unique menus and the same look and feel throughout.

  • Like 1

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
contentedrich    0
contentedrich

Hi Rob,

 

Wow - thanks for the detailed response! I thought of the second Wordpress install solution, but I don't think it's ideal - not really because of the extra Pagelines license (I have a Pro license), but because in the future I plan to switch my sites over to a Wordpress managed hosting provider, and most that I have come across seem to have a limit on the number of Wordpress installs. Plus it's another headache when it comes to updating everything.

 

I think at the moment it's probably best for me to work out a way of combing the two menus so that I only need one menu - it's only a personal site, which I'm trying to build by myself purely so that I can get myself more accustomed to working with DMS. If it's worth the extra work in the future, then I'll definitely look more into your custom CSS option (perhaps getting someone with more expertise to do it though!). I'll save your very helpful advice in Evernote for future reference!

 

Thanks again, especially for replying on a Sunday!

 

Cheers,

 

Rich

Share this post


Link to post
Share on other sites
Rob    547
Rob

Rich,

 

I have a major food site still using Framework.  I hope you're sitting down now.

 

I have 17 WP installations comprising the site, with the menu and links tying it all together.  Our developer thinks I'm insane.  But it works. If it weren't for the massive content the site has, I would still be on a VPS account.  What killed that was the 250,000 posts and 7Gb of images. But the WP installations didn't overtax the system. 

 

So don't worry about two.  Start worrying at 6.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×