js file not included in footer
-
I dont understand why my two js files dont get included before end body tag…
I have includes/front/enqueue.php
I have a assets/js/plugins.js
assets/js/functions.js
Of Course I have <?php in both php files ??wp_register_script( 'os_plugins', get_template_directory_uri() . '/assets/js/plugins.js', array(), false, true ); wp_register_script( 'os_plugins', get_template_directory_uri() . '/assets/js/functions.js', array(), false, true ); wp_enqueue_script( 'jquery'); wp_enqueue_script( 'os_plugins' ); wp_enqueue_script( 'os_functions' ); }
So in mu functions.php I have :
include( get_template_directory() . '/includes/front/enqueue.php'); include( get_template_directory() . '/includes/setup.php'); include( get_template_directory() . '/includes/widgets.php'); include( get_template_directory() . '/includes/theme-customizer.php'); include( get_template_directory() . '/includes/customizer/social.php' ); include( get_template_directory() . '/includes/customizer/misc.php' ); include( get_template_directory() . '/includes/customizer/enqueue.php' ); // Hookes add_action( 'wp_enqueue_scripts', 'os_enqueue' ); add_action( 'after_setup_theme', 'os_setup_theme'); add_action( 'widgets_init', 'os_widgets' ); add_action( 'customize_register', 'os_customize_register' ); add_action( 'customize_preview_init', 'os_customize_preview_init');
can anyone please give me a helping hand ?
Thanks!
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘js file not included in footer’ is closed to new replies.