I'm trying to change the labels in Slicknav for when the Slicknav menu is opened and closed.
In the jsfiddle, here. I've used label closed for the default state, and for the open state another piece of text I would like another piece of text.
Like this for the normal state:
$('#menu').slicknav({
duplicate: false,
label: 'label closed'
});
I've tried using basic if this then that and I feel like I'm just messing up this very simple piece of javascript.
Any help would be greatly appreciated!
After having a short look on the docs
Something like this should do the trick.
Also the link to jsfiddle