Drop down menus not working with a child theme

[ad_1]

Hi,

On a development site using a child theme, if I comment out the following code in the child theme’s functions.php, the navigation menus work fine:

function foracure_child_styles() {
  wp_enqueue_style('child-styles', get_stylesheet_directory_uri() . '/core/css/style.css', array(), false, false);
}
add_action( 'wp_enqueue_scripts', 'foracure_child_styles' );

If I un-comment out the code, so the code is active, the drop-down menus don’t work. Everything else works fine on the site, and there are no console errors.

Is there anything wrong with the code above?

  • This topic was modified 17 hours, 36 minutes ago by SRD75.

The page I need help with: [log in to see the link]

 

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