@sakanakana, You don’t say what problem you are having, but if it’s the same problem that I had, the following may help.
On my site, the three-line hamburger menu changed to one line. After some searching around, I found the following fairly simple fix.
In the kumle theme is a folder /assets/third-party/meanmenu, which manages the switch to a mobile menu. I made a very minor edit to the file jquery.meanmenu.js (I used standard text editor to open and edit the this .js file). In line 32, there is this code:
meanMenuOpen: "<span /><span /><span />", // text/markup you want when menu is closed
I changed each instance of <span />
to <span></span>
and the three lines were back. I’m not sure why, but I think the use of <span /> may be obsolete.
Hopefully, the kumle developer is reading this and, if they agree my solution, they will amend the kumle theme for everyone.
If, like me, you are using a child theme so as not to alter the parent kumle theme, the solution is a bit more complicated. I copied the meanmenu folder (ie /assets/third-party/meanmenu) from kumle to my child theme. Having done that, I found that it was also necessary to enqueue the two files inside my child themes. I did t by adding code to my child theme’s functions.php. I’m not at all proficient in PHP, but I found the following worked for my child theme:
function <strong>[insert a pre-fix]</strong>_scripts() {
wp_enqueue_style( 'jquery-meanmenu', get_stylesheet_directory_uri() . '/assets/third-party/meanmenu/meanmenu.css' );
wp_enqueue_script( 'jquery-meanmenu', get_stylesheet_directory_uri() . '/assets/third-party/meanmenu/jquery.meanmenu.js', array('jquery'), '2.0.2', true );
}
add_action( 'wp_enqueue_scripts', '<strong>[repeat the same pre-fix from above]</strong>_scripts' );
I think you can use any “pre-fix” that hasn’t already been used in the theme. (Don’t type the square brackets.)
Good luck
-
This reply was modified 3 years, 8 months ago by Simon Carne.
-
This reply was modified 3 years, 8 months ago by Simon Carne.
-
This reply was modified 3 years, 8 months ago by Simon Carne.