css_src¶
Summary¶
css_src() is a helper function used when referencing a css file within a theme, and commonly included within a theme’s header.php file. It returns the path to a css file located in the css folder of that theme, usually located in themes/YourTheme/css.
Note
The queue_css_file helper is preferred to this one for most use cases.
- css_src(string $file, string $dir = css)¶
Return the web path to a css file.
Parameters: - $file (string) – Should not include the .css extension
- $dir (string) – Defaults to ‘css’
Returns: string