WP Bottom Menu onclick event

Hi there,
I’m using the WP Bottom Menu plugin which has an option to add an onclick event for custom menu items.

I can’t for the life of me work out what the onclick code should be to get the sidebar to toggle.

Sidebar ID: #ocs-mobile-menu   Trigger Classes: .ocs-toggle-mobile-menu .ocs-open-mobile-menu .ocs-close-mobile-menu

I managed to get the fly cart I use to trigger using ‘woofc_toggle_cart();’ but using a similar format for the sidebar doesn’t seem to work.

Any help you can offer would be very much appreciated!


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer