WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get stylesheet uri

Description

Retrieves the URI of the current theme stylesheet.

The stylesheet file name is 'style.css' which is appended to get_stylesheet_directory_uri() path.

Usage

<?php get_stylesheet_uri(); ?>

Parameters

None.

Return Values

(string) 
Returns URL of current theme stylesheet.

Examples

To output the URL <?php echo get_stylesheet_uri(); ?>

Notes

Change Log

Since: 1.5.0

Source File

get_stylesheet_uri() is located in wp-includes/theme.php.

Related

Theme paths: get_template(), get_template_directory(), get_template_directory_uri(), get_theme_roots(), get_theme_root(), get_theme_root_uri(), get_stylesheet(), get_stylesheet_uri(), get_stylesheet_directory(), get_stylesheet_directory_uri(), get_bloginfo(), get_theme_file_uri(), get_theme_file_path()

See also index of Function Reference and index of Template Tags.