<?php
/*
# =======================================
# functions.php
#
# The theme's Function
# =======================================
*/
/*---------------------------------------*/
/* 1. CONSTANTS */
/*---------------------------------------*/
define('THEMEROOT', get_stylesheet_directory_uri());
define('IMAGES', THEMEROOT.'/img');
define('JS', THEMEROOT.'/js');
/*---------------------------------------*/
/* 2. SCRIPTS */
/*---------------------------------------*/
if(!function_exists('hydrogen_scripts')) {
function hydrogen_scripts () {
/* Load the stylesheets. */
wp_enqueue_style( 'style', THEMEROOT . 'style.css' );
}
add_action('wp_enqueue_scripts', 'hydrogen_scripts');
}
What mistake am I doing that this is not able to load the style.css? Any idea? Looks like some subtle mistake that is not visible.
trailingslashit( $string )which will add a trailing slash if$stringdoes not already have one.