Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #820886

    Hello,
    I was looking throught the code to find a way to disable the new hamburger menu (somehow, it shows me on both desktop and mobile, and I wanted to get rid of it on both so I just overwrote the pluggable function avia_append_burger_menu() with an empty one in my child theme, if anyone’s interested; IMHO there should be an option to disable it on admin). However, when reading the code I found that these two lines contain a probable typo:
    functions-enfold.php: 117
    functions-enfold.php: 143

    Both are same:
    if ((is_object($args) && $args->theme_location == ‘avia’) || (is_string($args) && $args = “fallback_menu”))

    And the error is that the last statement is $args = “fallback_menu”, while it should be $args == “fallback_menu”. Now it’s an assignment operator and hence always evaluates to true (in if statement).

    • This topic was modified 8 years ago by elmo.
    #821059

    Hey Elmo,

    Thanks for sharing though there are options for you to select where to show the mobile menu, have a look under Enfold->Main Menu.

    Best regards,
    Rikard

    #821156

    Hi, that is the place in admin exactly where I tried to find an option to disable the burger menu. But there doesn’t seem to be such an option. What setting exactly are you referring to?

    #821315

    Hi elmo,

    Here

    View post on imgur.com

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #821318

    Hi, yes I know, that is the page, but my question is: what _setting_ on that page would disable the burger menu? I cannot find any. Which dropdown, which option do you mean?

    #821536

    Hi,

    I think I didn’t read your initial post careful enough, you wanted to get rid of it on all screen sizes? If that was the case then no, there are no options for that scenario unfortunately. Thanks again for sharing your solution though :-)

    Best regards,
    Rikard

    #821677

    Yes, on all screen sizes. Furthermore, I can’t see any option to disable it on any screen size, be it mobile, tablet or desktop.

    #821925

    Hi,

    Yes that is correct, I’m not sure we will implement options for that since the vast majority of our user want the mobile menu to be active on mobile devices.

    Best regards,
    Rikard

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