-
AuthorPosts
-
February 10, 2017 at 7:29 am #745226
Hello!
Please see website http://www.fbtherapy.com.
On the English language page (but also on the Portuguese page) a problem exists when the browser window is just small enough so that the menu text bleeds into the logo. Made the browser window a bit bigger and the logo and menu look perfect. Make the browser window a bit smaller and the menu disappears and is replace the 3-horizontal lines that indicate there a menu there.
Sadly, there’s a ‘sweet spot’ where the browser window is just right and allows the logo and menu to bleed together.
I’ve tried putting the menu below the logo and that works just fine. The two never overlap. However, it is not as aesthetically pleasing to the eye (in my opinion) as is the logo and menu on the same plane.
So my question: how can I get the menu to collapse into the 3-horizontal lines as soon as it bumps into the logo space, rather than allowing the overlap to occur?
Any suggestions?
Thanks!
Jeff
February 12, 2017 at 6:50 am #745854Hi Jeff,
Please try the following in Quick CSS to activate the mobile menu at an earlier point:
@media only screen and (max-width: 1200px) { nav.main_menu {display:none !important;} #advanced_menu_toggle, #advanced_menu_hide {display:block !important;} }
Best regards,
RikardFebruary 12, 2017 at 7:36 am #745869Hi Rikardm
Good news and bad(for me) news. Your CSS worked great for the main (English) page.
I am, however, using Menu Swapper for the Portuguese and Spanish pages. This plugin requires that I set up two additional menu locations: mswp_portuguese_mm & mswp_spainsh_mm respectively.
Since these language pages aren’t using the Enfold Main Menu, this CSS isn’t working on either of those pages.
Is there a way to modify the CSS you gave me so that it also covers the two new menu locations I’ve created?
Thanks!
Jeff
February 13, 2017 at 7:43 am #746173Hi Jeff,
As far as I can see the same menu is being used so I think it should apply, maybe you need to add it to Quick CSS for all the languages?
Best regards,
RikardFebruary 13, 2017 at 7:59 am #746184I’m sorry, Rikard, I don’t understand.
I have implemented these different language versions as pages on the same website. There is a ‘Home – English’ page, a ‘Home – Portuguese’ page, and a ‘Home – Spanish’ page.
The only place I could find a Quick CSS box is on the ENFOLD theme options – which I assume affects all pages in the theme. Are you suggesting that there is a place for me to put in Quick CSS for a specific page (instead of as a theme option)?
If so, I’d love to give that a try. Where can I find it?
Thanks!
Jeff
February 14, 2017 at 5:00 am #746701Hi Jeff,
Ok, thanks for the feedback. I’m not sure I understand how that works though, maybe you could try the CSS in a Code Block element on each of the pages also?
Best regards,
RikardFebruary 15, 2017 at 5:47 pm #747568Hi Rikard!
So here’s what I found out: apparently the function of the Code Block is to display code or CSS on the webpage as content instead of as something that executes. So the Code Block didn’t work for me.
After trying half a dozen other techniques and plugins, here’s what I came up with:
You gave me the following CSS:
@media only screen and (max-width: 1200px) {
nav.main_menu {display:none !important;}
#advanced_menu_toggle, #advanced_menu_hide {display:block !important;}
}This only worked on the English page. The Portuguese and Spanish pages were still letting the main menu overlap into the logo. So I tried a few changes to the CSS you gave me and came up with this:
@media only screen and (max-width: 1300px) {
nav.main_menu {display:none !important;}
#advanced_menu_toggle, #advanced_menu_hide {display:block !important;}
}Notice the 1300px (your original was 1200px). This now works for all three pages – English, Portuguese and Spanish.
However, there is one slight issue – the English menu collapses to the 3 lines (don’t know what else to call it) menu VERY early, not as it starts to bump against the logo.
So here’s my question – is it possible for us to come up with some kind of page-specific CSS using the page IDs? For instance, for the English page:
.page-id-17 @media only screen and (max-width: 1200px) {
nav.main_menu {display:none !important;}
#advanced_menu_toggle, #advanced_menu_hide {display:block !important;}
}And for the Portuguese and Spanish pages:
.page-id-472 .page-id-451 @media only screen and (max-width: 1300px) {
nav.main_menu {display:none !important;}
#advanced_menu_toggle, #advanced_menu_hide {display:block !important;}
}I know it’s possible to qualify CSS by page ID, but I do not know how to do it within the context of the CSS you gave me. I don’t know how to specify it and I don’t know the order in which it needs to be displayed so that they both are active and don’t overwrite each other’s functionality.
Thanks for you patience on this, Rikard. I’m sure it’s a pain, but I’m really close to getting the effect I want.
Jeff
February 16, 2017 at 8:51 am #747839Hi Jeff,
Thanks for the feedback, that means the CSS was working all along but the menus used in your other languages had more text so it still overlapped. Yes you can use a page specific solutions, though you might end up with a lot of CSS so I would suggest you go with the simple solution which works for all languages. If you still want page specific CSS then try something like this:
@media only screen and (max-width: 1200px) { .page-id-17 nav.main_menu {display:none !important;} .page-id-17 #advanced_menu_toggle, .page-id-17 #advanced_menu_hide {display:block !important;} }
Best regards,
RikardFebruary 16, 2017 at 7:10 pm #748098WOW! Excellent! The menu behavior is exactly what I want. Thanks so much, Rikard! This is perfect.
Please close this one out.
Thank again.
Jeff
-
AuthorPosts
- The topic ‘Logo and menu overlap when browser window is at a certain size’ is closed to new replies.