Functions/display css

< Functions(Redirected from Theme API/display css)

The display_css() helper function prints HTML link tags to the page for each stylesheet added with queue_css(). It is commonly used in a theme's common/header.php file to print the link tags inside the page head.

Usage

<?php display_css(); ?>

Arguments

display_css() takes no arguments.

Return Value

None. display_css() prints the tags immediately, it does not return them as a string.

Example(s)

Standard Usage

In a theme's common/header.php:

<?php display_css(); ?>

This will print a tag for any script added with queue_css(). In a theme, the call to display_css() should come after the call to plugin_header() so plugins have a chance to add their own CSS.

Source File / Version

  • application/helpers/AssetFunctions.php in Omeka 1.3.