• 0

Hero Nav How do I set the breaking point for Hero Nav?

Question

Posted · Report post

Hi Evan, 

 

Great work on the section! It's been a life saver for me. Just had a quick question, was wondering if it was possible to set Hero Nav to show the mobile menu at a larger resolution. 

 

Currently it seems to break into the mobile menu at around 600px. Can this number be change to something larger. 
 

I'm attaching a screenshot so you can see what I'm talking about. You see how the menu basically slides underneath the logo and some items get hidden? Trying to avoid that. Or you could tell me how to make the logo responsive :)

 

http://imgur.com/WOUvMoZ

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

napait,

 

This feature has been added since 1.2.0.  You will find it at the bottom of Hero Nav's global options (under Site Options).  It's called "Mobile Break".

 

There, you can specify the width at which Hero Nav's mobile styles should take over.  You can specify either a pixel width (such as 768px or 768), or a less variable (eg @resLargeDesktop).

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hey chan08,

 

That's an interesting idea.  The breakpoint is currently set to use the @resPortraitTablet less variable which is set to 767px by default.  There is no option at the moment to change this, but perhaps I'll add it.  If you wanted to change this value, you could do so by copying the core framework's variables.less file into a directory in your child theme named 'less' (filename must be the same).  You could then change the value of that variable to something higher, but it may effect other things as well in a way that may not be practical.  I'm not really sure.

 

Another thing to keep in mind is that the media queries for it only kick in when the site is in some responsive mode (not fixed width), but it looks like you're using one of those.

 

Let me know how that works for you!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi evan,

 

Is this something you still thinking about adding into the features of DMS? I really feel it would be helpful due to menu lengths with different sites. Please let me know about any other ideas you might have to make this work. Currently markheroldwines.com is in need it, something to switch to mobile around 1280px. Thanks!

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