I want load a custom css in the index.php, this is my code

if(! function_exists('basictheme_styles_scripts')) {
function basictheme_styles_scripts() {
wp_enqueue_script('jquery');
wp_enqueue_style('basictheme-opensans', '//fonts.googleapis.com/css?family=Open+Sans');
wp_enqueue_style('basictheme', get_template_directory_uri().'/style.css');

}
}
add_action('wp_enqueue_scripts','basictheme_styles_scripts');

but perhaps something is wrong, beacause my index doesn’t load it

Read more here: WordPress doesn’t include css


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: