Answer the question
In order to leave comments, you need to log in
404 error when including styles on wordpress?
Rummaged through everything I can, I can't find a solution :( Help, guys.
Incoming data:
0. Server openserver (nginx + php7), WP latest - 4.7v.
1. Working with a self-made child theme longform-child (parent longform)
2 .The style files that need to be included are in
.../wp-content/themes/longform-child/lp/core
3. I include the following code in (functions.php of the child theme)
function add_custom() {
wp_enqueue_style('core', get_stylesheet_directory_uri().'/lp/core/core.css', array(), '44');
}
add_action('wp_enqueue_scripts', 'add_custom');
... id='core-css' href='http://my-domain.ru/wp-content/themes/longform-child/lp/core/core.css?ver=44' ...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question