Can’t load assets

Question

I finished some project and this script for loading assets worked fine. But now in another project something is weird. I can’t load .js and .css

<?php
function add_css_js() {
  wp_enqueue_script('main-javascript', get_theme_file_uri('/js/main.js'), NULL, '1.0', true);
  wp_enqueue_style( 'tailwind', get_template_directory_uri() . '/css/style.css' );
}
add_action('wp_enqueue_scripts', 'add_css_js');

This is how looks my folder: https://i.imgur.com/jCDbPW0.png

0
RS92 7 months 2020-12-22T08:10:40-05:00 0 Answers 8 views 0

Leave an answer

Browse
Browse