Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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
    Flikk

    #363205

    Hey Flikk!

    Try adding this.

    #fullwidthmap .container {
        max-width: 100% !important;
    }

    Cheers!
    Elliott

    #363279

    Thx 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?

    #363811

    Hi!

    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,
    Elliott

    #364364
    This reply has been marked as private.
    #364391

    nevermind still have the problem

    • This reply was modified 9 years, 11 months ago by Flikk.
    #364398

    I 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.

    #364886

    Hi!

    The login information does not seem to be working. Did you get it fixed?

    Best regards,
    Elliott

    #365066

    You 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.

    #365196

    Hey!

    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,
    Ismael

    #365352

    yes, 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.

    #366712

    Hi!

    I tried to login again but it’s still not working. Go ahead and fix that and we’ll take a look.

    Regards,
    Elliott

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.