fix(navwalker): correct file path in require statement

The incorrect file path to the navwalker class was causing issues during theme setup. Adjusted the path to correctly reference 'classes/navwalker.php'. This aligns the file path with the directory structure, ensuring smooth functionality of the theme.
This commit is contained in:
Kumi 2024-09-17 15:47:54 +02:00
parent e7a4f5923b
commit 9e7dc2c85c
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -61,6 +61,6 @@ class WP_Bootstrap_Navwalker extends Walker_Nav_Menu
*/
function register_navwalker()
{
require_once get_template_directory() . '/class-wp-bootstrap-navwalker.php';
require_once get_template_directory() . '/classes/navwalker.php';
}
add_action('after_setup_theme', 'register_navwalker');