queue_css_file

Head-related functions

Summary

queue_css_file(string|array $file, string $media = all, string|bool $conditional =, string $dir = css)

Declare that a CSS file or files will be used on the page.

All “used” stylesheets will be included in the page’s head. This needs to becalled either before head(), or in a plugin_header hook.

Parameters:
  • $file (string|array) – File to use, if an array is passed, each array member will be treated like a file.
  • $media (string) – CSS media declaration, defaults to ‘all’.
  • $conditional (string|bool) – IE-style conditional comment, used generally to include IE-specific styles. Defaults to false.
  • $dir (string) – Directory to search for the file. Keeping the default is recommended.

Usage

Examples

See Also

Project Versions

Table Of Contents

Previous topic

js_tag

Next topic

queue_css_string

This Page