I
I
Ivan Gordienko2018-08-02 17:25:29
WordPress
Ivan Gordienko, 2018-08-02 17:25:29

Wordpress not including style.css?

Just haven't tried it. The style.css file is at the root, besides this there are additional styles, but the main one does not even want to be connected, where and what am I doing wrong? Can you help?


<?php
function my_enqueue_style() {
wp_enqueue_style('style', get_stylesheet_uri());
}
add_action('wp_enqueue_scripts', 'my_enqueue_style' );
?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Gordienko, 2018-08-02
@zordq

<?php wp_head(); ?>
https://wp-kama.ru/function/wp_head

A
Alexander, 2018-08-02
@a-kh

In the root of the theme or in the core of the site? Here is the correct code, in functions throw https://wp-kama.ru/function/wp_enqueue_style

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question