-
AuthorPosts
-
December 4, 2014 at 2:06 pm #362840
Hi there,
i updated the enfold theme recently and noticed that one page got messed up.
Please see the demo site for what it looked like after the update.I tried to add the following CSS but it somehow messes up the mega menu on that page when you mouseover the menu point “Products”
#fullwidthmap .container{ max-width: none; }
Is there any other way to fix the site so it’s fullwidth again or prevent the mega menu from getting messed up?
thanks in advance
FlikkDecember 4, 2014 at 8:28 pm #363205Hey Flikk!
Try adding this.
#fullwidthmap .container { max-width: 100% !important; }
Cheers!
ElliottDecember 4, 2014 at 10:25 pm #363279Thx for the response.
Unfortunately your CSS is doing exactly the same that mine does.
When you add the CSS in Firebug it looks fine since the page does not reload.I guess the width for the mega menu is calculated on pageload based on the width of .container or something like that?
Any other ideas?
December 5, 2014 at 8:35 pm #363811Hi!
Hmm, I don’t think it would be changed with javascript. Go ahead and send us a WordPress login and we’ll take a closer look.
Regards,
ElliottDecember 8, 2014 at 12:12 am #364364This reply has been marked as private.December 8, 2014 at 2:33 am #364391nevermind still have the problem
- This reply was modified 10 years ago by Flikk.
December 8, 2014 at 3:14 am #364398I now use the following code to prevent the mega menus width to get screwed up:
.avia_mega_div { max-width: 60vw; }
I dont know how that would look in other web browsers.
And i wonder if that would cause any problems … for mee it seems like nobody wants to talk about the vh and vw lenght units.December 8, 2014 at 7:24 pm #364886Hi!
The login information does not seem to be working. Did you get it fixed?
Best regards,
ElliottDecember 9, 2014 at 12:19 am #365066You are right, the login in not working.
But the solution i posted here seems to work. I was just wondering if that would cause any problems since i’ce never really used this lenght unit.
December 9, 2014 at 7:14 am #365196Hey!
This might not work for old browser such as IE9. Viewport relative css values supports these browsers: IE 10+, Firefox 19+, Chrome 34+, Safari 7+, Android 4.4+, iOS 6+. Have you tried using percentage values?
Best regards,
IsmaelDecember 9, 2014 at 3:04 pm #365352yes, i’ve tried percentage values, but the parent element is the menu item which is 78px width.
And since the width of the menu item does not resize with the screen size, it wouldn’t work even if i’d use something like 1000% (780 px)I just wonder, why it get’s messed up in the first place. You say it’s no JS that calculates the width?
I removed the solution with the viewport CSS from the demo site so you can see how the width is messed up.
December 11, 2014 at 4:09 pm #366712Hi!
I tried to login again but it’s still not working. Go ahead and fix that and we’ll take a look.
Regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.