Need help with WP enqueuing
-
Hi all,
I have been looking at this too long and have had to find a fresh few eyes.
Followed a guide to set up a WP theme… and I have managed to load the Bootstrap.min.CSS. For some reason my other Style sheet will not load, though when inspecting the page it clearly says it there in the <head>…
Anyway I have made the site live for help. [ redundant link removed ] the function is;
function load_stylesheets() { wp_register_style('stylesheet' , get_template_directory_uri() . '/css/bootstrap.min.css' , array(), false, 'all'); wp_enqueue_style('stylesheet'); wp_register_style('styles' , get_template_directory_uri() . '/style.css' , array(), false, 'all'); wp_enqueue_style('styles'); } add_action('wp_enqueue_scripts', 'load_stylesheets');any way, yes the Bootstrap is loading. but my Css is not.
Please say I am missing something stupid lol
Thanks ahead of time.
- This topic was modified 6 years ago by .
- This topic was modified 6 years ago by . Reason: Formatting
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Need help with WP enqueuing’ is closed to new replies.