importing stylesheet with wp_enqueue_style() – wordpress not working

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?

Functions.php

<?php 
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');

?>

header.php

<head>
<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(); ?>
</head>

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

Leave a Reply

Your email address will not be published. Required fields are marked *