Added code in functions.php :

function theme_name_scripts() { wp_enqueue_style('style_blog', get_template_directory_uri() . "/css/style_blog.css"); wp_register_script('jone', get_template_directory_uri() . '/js/site.js'); } add_action('wp_enqueue_scripts', 'theme_name_scripts'); 

But nothing is being loaded. Also, the Visual Composer plugin styles are not loaded. I do the topic from scratch.

    2 answers 2

    1) The script is not enough to register, it must also be declared

    2) $deps parameter

    Total:

     function theme_name_scripts() { wp_enqueue_style( 'style_blog', get_template_directory_uri() . "/css/style_blog.css", false ); wp_register_script( 'jone', get_template_directory_uri() .'/js/site.js', false ); wp_enqueue_script( 'jone'); } add_action( 'wp_enqueue_scripts', 'theme_name_scripts' ); 
    • Did not help. I look through the source code, but nothing is added there. - Nikita True
    • <?php wp_head(); ?> <?php wp_head(); ?> in header.php and <? wp_footer(); ?> <? wp_footer(); ?> <? wp_footer(); ?> in footer.php are present? - xaja

    Solved a problem. I did not write the function wp_head() in header.php .