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_style('basictheme-opensans', '//fonts.googleapis.com/css?family=Open+Sans');
wp_enqueue_style('basictheme', get_template_directory_uri().'/style.css');


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

Read more here: WordPress doesn’t include css


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: