Hello
Im trying to set the close function to a custom button inside the off canvas element with this code:
jQuery(document).ready(function($){
$(’#my_button’).click(function(){
if($(’#myoffcanvaselement’).hasClass(‘x-active’)) {
$(’#myoffcanvaselement’).removeClass(‘x-active’);
}
});
});
And I’m failing :(. I’d appreciate any hint very much.
Kind regards.