You are calling the function wrong. You have not given your filename, just a directory.
From the codex
wp_enqueue_style( string $handle, string $src = false, array $deps = array(), string|bool|null $ver = false, string $media="all" )
so in your case, you should enqueue like so
add_action( 'wp_enqueue_scripts', 'wpse_my_style' );
function wpse_my_style(){
wp_enqueue_style( 'my-style', get_stylesheet_directory_uri() . 'path/to/your/css' );
}
the rest of the parameters are optional
Related Posts:
- How to add crossorigin and integrity to wp_register_style? (Font Awesome 5)
- How to add extra attribute to stylesheet link?
- How to force stylesheet to load before anything else in header?
- To enqueue or not to enqueue
- Enqueued Stylesheet Version Number Not Being Appended
- Never Enqueued Stylehsheet
- Changes in enqueued / registered stylesheet paths not updating—why?
- Which is the best way to incorporate custom fonts?
- Additional CSS – crashing with javascript-html minifier?
- How do I view registered syles and scripts for enqueue
- stylesheet in header or functions?
- What is the difference between the different ways of linking stylesheets
- Enqueuing a stylesheet and ensuring it’s loaded before (not after) the theme’s stylesheet
- How to properly add my styles overriding current styles
- Can’t Workout Dependency of Stylesheets
- Homepage not loading correctly, but then loads when refreshing
- Custom admin bar css on front end bug
- Style custom columns in admin panels (especially to adjust column cell widths)
- How to enqueue the style using wp_enqueue_style()
- How to enqueue style before style.css
- WordPress admin stylesheet
- How to add stylesheets only to pages with specific shortcode?
- What is the correct way to enqueue multiple CSS files?
- Why is the Child Theme Stylesheet Not Loading?
- Loading a child-theme’s style.css after the parent’s
- Remove wp_add_inline_style
- how to include other plugins css files in a shortcode?
- How to use wp_dequeue_style() for style enqueued in WP_Widget class
- Avoid to load default WP styles in login screen
- How Would You Enqueue A Google Web Font?
- Does wordpress wp_enqueue_style support noscript?
- Stylesheet from wp_enqueue_style is overwritten by plugin
- How to add the main style.css to my index.php?
- Why isn’t my theme processing SASS?
- Adding inline styles from a widget
- How do I load custom scripts and styles for a page?
- wp_enqueue_style in Plugin [duplicate]
- Child Theme Not Overriding Parent Theme
- Enqueued Stylesheets Effecting Admin Styles
- Enqueue styles after a plugin
- Google fonts enqueue only imports last font family
- I register and enqueue stylesheet but nothing is rendered
- wp_enqueue_style with style.php and WordPress functions
- The correct way to include JavaScript and CSS in my WordPress Themes
- Is it possible to change the path of a css file that is registered through wp_enqueue_style()?
- Why are my styles being applied to the admin area?
- get_stylesheet_uri returns wrong path
- How to link style.css in functions.php
- How to enqueue stylesheets?
- Dequeue a style file which is making website load slow!
- Enqueue stylesheets with the same name
- wp_enqueue_style will not let me enforce screen only
- How the Css File is Linked without calling it in header.php?
- How to insert html/css/javascript code to wordpress plugin
- Different ways to load child theme css
- Parent theme CSS overriding child CSS rules
- Override theme style with other CSS on a specific page
- How to override Bootstrap css with my child theme css in wordpress?
- How to organize priority of plugins CSS files?
- Font Awesome 5 Free – far working but fas is not? [closed]
- wp_enqueue_style in WordPress plugin class not working
- Which is the correct way to conditionally enqueue a CSS file?
- Plugin and themes are adding the same stylesheets
- my custom css file downloads then it STOPS!
- Child Theme CSS not showing at all
- Faster fonts on mobile
- Split Media Queries in different files!
- Display Something in the Header After All Styles are Loaded
- Custom WordPress Theme loads js but not stylesheets
- Why is my wp_enqueue_style() not working?
- Google Fonts not loading correctly
- Stylesheet Enqueue Order and Best Practices
- enqueing Javascript and CSS
- Parent theme styles overriding child theme CSS [closed]
- Theme JS is available but theme CSS isn’t
- Proper Way to Load stylesheet on Condition
- Including CSS files in HEAD based on page content
- WordPress Child theme fails to override parent theme css
- Missing dns-prefetch link when using “nested” wp_register_style
- Is there a way to deque the style with higher priority?
- How to get rid off default css styles
- CSS not being applied using wp_enqueue_style
- Load CSS before Theme CSS
- How To Load wp_add_inline_styles
- Dequeing Parent Fontawesome Deques Parent Styles
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- CSS style and app.js not loading
- Edit CSS of a plugin
- Child Theme not loading multiple stylesheets
- Controling css order
- font style is not working on domain
- Why are my parent styles loading after my child styles?
- How to make CSS load live based on options clicked in the theme customizer?
- Browser stacks different versions of style.css
- How to NOT override inline css rules
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- Stooping a css file from loading in the header
- enqueue style sheet and bootstrap
- Enqueue MCE Editor CSS in admin page
- How do I remove Google Fonts from a parent theme?