Getbeans / Beans

Beans WordPress Theme Framework. The default branch is set to development, please switch to the master branch for production.
https://www.getbeans.io
Other
391 stars 61 forks source link

off-canvas menu #25

Closed eXperitur closed 8 years ago

eXperitur commented 8 years ago

Hi Thierry

I have a quick support question about the off-canvas menu. When I click on the menu button nothing happens in my setup. I did add my primary menu widget on the off-canvas menu area (Appearance > widgets), so it is not empty. I checked and it seems that the UIkit component is being loaded. Is there something I am missing for the off canvas menu to show?

Thank you in advance ;)

ThierryA commented 8 years ago

Hey @symmetrium,

The primary menu is automatically added so you don't have to add a menu widget. It is hard to say without seeing the page but the first thing which comes to my mind is a JS error preventing the off-canvas JS to work properly. Could you kindly post a link to the page if it isn't on a local environment?

Are you using a child theme and/or plugins. If yes does the issue still occur if you disable all plugins and and switch to Beans parent theme?

Thanks,

eXperitur commented 8 years ago

Hi! Thank you for your reply.

I'm on a child theme. Switching to the parent theme had not helped. I will try disabling all the plugins and let you know. For the moment being I circumvented the problem by adding the following javascript to the site (which may point to a possible cause/solution?):

jQuery(document).ready(function($) { /* --- off-canvas menu --- */ $('a[href="#offcanvas_menu"]').click(function(){ UIkit.offcanvas.show('#offcanvas_menu'); }); });

ThierryA commented 8 years ago

If that works it means that JS is working properly. Does your menu link have the data-uk-offcanvas attribute?

screenshot 2016-01-05 13 37 41
eXperitur commented 8 years ago

yes it does : )

ThierryA commented 8 years ago

Ok, the last thing I can think of off my head is that another even is conflicting. Have you tried to disable all plugins? If that doesn't help I will have to take a look at the code.

Kindly post the link to the page in that case :)

ThierryA commented 8 years ago

@symmetrium just a friendly reminder that we are awaiting for your reply ;)

eXperitur commented 8 years ago

Sorry for the delay, been real busy!

The problem went way after disabling all plugins and re-enabling them all. Although I re-enabled them one by one, I could'nt identify which one was at the source of the problem.

I'll make sure to keep you posted if I find the culprit.

Thanks a lot!