menu toggle button no longer works in child theme
-
I created this site in 2016 using the Simone theme and have really loved this theme. Everything worked fabulously until suddenly, very recently.
The menu works fine in large sizes, but when the menu is supposed to change to the small device version, only the MENU button displays, but nothing happens when you click on that button. So going to this website on a phone means you have no access to the menu.
I deactivated all the plugins — it still happens.
I switched to SIMONE from my child theme of SIMONE — the problem vanished! So it’s only happening with my child theme. But… it worked fine for years. ?
I am wondering if there is a problem with how the child theme is linking to (enqueing?) the parent Simone theme.
Below I am including my child theme’s function.php file. I would so immensely appreciate if someone could take a look and see if the problem if here:
** * the functions file for the simone-child-srp theme. */ /* For child theme authors: To disable the styles and layouts from Simone properly, * add the following code to your child theme functions.php file:*/ add_action( 'wp_enqueue_scripts', 'dequeue_parent_theme_styles', 11 ); function dequeue_parent_theme_styles() { wp_dequeue_style( 'simone-parent-style' ); wp_dequeue_style( 'simone-layout' ); } /*test if front page, if so, load front-page-style.css*/ function simonechild_scripts() { if ( is_front_page() ) { wp_enqueue_style( 'front-page-styles', get_stylesheet_directory_uri() . '/front-page-style.css'); } } add_action( 'wp_enqueue_scripts', 'simonechild_scripts'); /*allow child of Simone to load the multiple stylesheets that come with Simone*/ function enqueue_child_theme_styles() { wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('simone-style') ); } add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
==================================
Thank you for any help!!!
SusanThe page I need help with: [log in to see the link]
- The topic ‘menu toggle button no longer works in child theme’ is closed to new replies.