Can’t add custom scripts and styles
-
Hello! I try to connect the gallery output via the ACF plug-in, but when I connect scripts and gallery styles they just do not work. I do everything as usual. I am writing to /inc/functions.php code:
function wpb_adding_scripts() { wp_register_script('slick', plugins_url('/assets/js/slick.js', __FILE__), array('jquery'),'1.1', true); wp_enqueue_script('slick'); } add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );
But in the source code, you can not see the scripts and styles that are connected. With other topics worked fine. What am I doing wrong? Tell me please!
The page I need help with: [log in to see the link]
- The topic ‘Can’t add custom scripts and styles’ is closed to new replies.