Trying to import a custom css style sheet however its not showing up in the inspect element and not working. style.css is inside a folder called css which is in the root directory. Any ideas?


function learningWordPress_resources() {
        wp_enqueue_style('samirtheme-css', get_template_directory_uri().'/css/style.css', array(), '1.0.0', 'all');
        // wp_enqueue_style('customstyle', get_template_directory_uri().'/css/style.css', array(), '1.0.0', 'all');


add_action('wp_enqueue_scripts', 'learningWordPress_resources');



<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<title> <?php bloginfo('name') ?> </title>

<?php/* allows wordpress to add whatever it needs to */wp_head(); ?>

Read more here: importing stylesheet with wp_enqueue_style() – wordpress not working


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: