
-
AuthorPosts
-
July 14, 2017 at 12:46 am #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: 143Both 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.
July 14, 2017 at 9:43 am #821059Hey 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,
RikardJuly 14, 2017 at 2:08 pm #821156Hi, 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?
July 14, 2017 at 5:43 pm #821315Hi elmo,
Here
If you need further assistance please let us know.
Best regards,
VictoriaJuly 14, 2017 at 5:48 pm #821318Hi, 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?
July 15, 2017 at 4:47 am #821536Hi,
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,
RikardJuly 15, 2017 at 2:31 pm #821677Yes, on all screen sizes. Furthermore, I can’t see any option to disable it on any screen size, be it mobile, tablet or desktop.
July 16, 2017 at 7:24 am #821925 -
This topic was modified 8 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.