wordpress stylesheet linking
Posted: Thu Mar 31, 2016 5:47 pm
I was just going through this tutorial https://www.youtube.com/watch?v=k7olvEe ... aqOVpX7qi5 and basically the author recommends that the css stylesheet be imported like so:
My header.php of my theme looks like so:
But i am still not seeing the effect of my stylesheet , can anybody point me to what exactly am i doing wrong ?
Thank you.
Code: Select all
<?php
function learningWordPress_resources() {
wp_enqueue_style('style' , get_stylesheet_uri());
}
add_action('wp_enqueue_scripts' , 'learningWordPress_resources');
?>
Code: Select all
<!doctype html>
<html <?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title><?php bloginfo('name'); ?></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header class="site-header">
<h1><a href="<?php echo home_url(); ?>"></a><?php bloginfo('name'); ?></h1>
<h5><?php bloginfo('description'); ?></h5>
</header>
Thank you.