get_stylesheet_uri()
loads the main stylesheet of the theme. If you need to load additional stylesheets, you need to use get_template_directory_uri()
for parent themes and get_stylesheet_directory_uri()
for child themes.
If you have stylesheet called custom.css
in the root in a child theme, you will use get_stylesheet_directory_uri()' . /custom.css'
You should also make sure that you have wp_head()
inside your <head></head>
tags in your header
Related Posts:
- How to load scripts/styles specific for a page
- Dequeue Scripts and Style for Mobile not working?
- Enqueue script o style only if a template part is loaded
- How to load script-related styles automatically?
- If is multiple page templates
- Passing arguments to my function with do_action and add_action is not working
- Enqueue scripts not working with if is page conditional tag in functions.php
- Why won’t my scripts load?
- Only let plugin add actions to wp_head & wp_footer on single posts
- enqueue styles for only mobile wp
- jQuery does not work
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- Theme JS is available but theme CSS isn’t
- wp_enqueue_script() not working
- How to use wp_enqueue_script properly?
- Advanced method to control cache of enqueued style/script
- Add custom css file after plugin css with WordPress Child Theme functions.php
- wp enqueue style on about us page
- Test CDN link from function.php or wp_enqueue_script/style?
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- I need to ‘wp_dequeue_script’ and ‘styles’ and ADD a bunch of other css and js
- True parameter but jquery register in header and not in the footer with wp_register_script
- Why is style.css not loading through the functions.php
- custom post with loading script per single post
- using enqueue_script in a shortcode isn’t working
- Auto updating JavaScript dependancy in functions.php
- Loading newest dependency javascript module file in functions.php
- How can I get a list of all enqueued scripts and styles?
- remove_action on after_setup_theme not working from child theme
- Remove Actions/Filters added via Anonymous Functions
- WordPress Enqueue for homepage only, functions.php, wp-framework
- Trying to use add_action and do_action with parameters
- Check if post is being published for the first time, or is an already published post being updated
- How to use the do_action () with parameter
- Perform an action when post is updated/published
- Get list of scripts / styles and show file which enqueued them
- WordPress Theme Update Action?
- Extract image from content and set it as the featured image
- Do WordPress’ cron’s clean up expired transients?
- add_action in a function, is it possible?
- deregister scripts on certain page
- Using a private method as an action callback from within a class
- Refresh page after form action
- How to restrict actions and filters “properly” by conditions
- How to count number of functions attached to an action hook?
- Add action hook conditionally – only when home.php in use
- Enqueue Script with data attributes
- Using add_filter() in Widgets
- How to enqueue every script in a folder automatically?
- How can I tell if I’m on a login page? [duplicate]
- TinyMCE custom stylesheets for different post types
- is_front_page not working in functions.php
- Change meta tags programatically
- Convert hyphen to underscore in permalinks
- Using get_terms for custom taxonomy in functions.php
- Fatal error: Call to undefined function add_action() – an untouched problem
- How do I load custom scripts and styles for a page?
- Most elegant way to enqueue scripts in function.php with foreach loop
- wp_register_script not loading as expected
- How to hook into the quick edit action?
- Problem using is_single() to enqueue script from functions.php
- Reuse variable in hook callback
- Enqueue less file not working in child theme?
- I created a child theme and it doesn’t work for some of the css files
- Call to undefined add_action() in theme’s functions.php
- Enqueuing External Javascript functions.php
- Child Theme Not Overriding Parent Theme
- How to enqueue JavaScript for specific WordPress pages only?
- WooCommerce add_action hook results in 500 error
- Enqueue styles after a plugin
- How to override enqueued styles using a child theme
- Enqueuing Script in functions.php vs on the page
- Dequeue script in template isn’t working
- Automatically Add Specified Value to Attachment Metadata upon Upload
- Can’t Update function.php after writing short code
- How to update feed only 2-3 times a week (for Feedburner email)?
- WordPress doesn’t Load JQuery Now? Do I need to enqueue JQuery also?
- How would go about if I just want a temporary function?
- How do I get a child theme to load scripts from the parent theme?
- wp_enqueue_script add integrity parameter
- Pass parameters to function through an action
- How to avoid loading same script twice?
- Accepted arguments value in hook functions
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- Deregister scripts on unnecessary pages using remove_action
- How to select a page within admin?
- WP CLI Get all Enqueued Scripts and Styles
- How to manage arrays from custom functions stored in functions.php?
- Load JS Script only for custom post types
- Register and enqueue style.css custom theme
- How do I pass arguments for multiple functions hooked to a single action?
- Which action hook to use for function?
- Custom HTML in specific category single page and its descendant categories
- wp_is_mobile dequeue not working
- Register vendor JS/CSS only on pages that require them?
- Enqueue Style Only On Certain Pages Not Working
- Modify a function without editing template
- functions.php How to add css/js depending on Template Name?
- Don’t delete a page if it holds users
- How do I add Bootstrap and LESS to my migrated WordPress site?