WordPressEnqueuing Styles


Syntax

  1. wp_enqueue_style($handle, $src, $dependency, $version, $media);

Parameters

ParameterDetails
$handle(String) (Required) Unique name for the stylesheet.
$src(String) (Optional) URL of stylesheet which will be used inside link tag's src attribute.
$deps(String) (Optional) An array of stylesheet handles this stylesheet depends on.
$ver(String) (Optional) String specifying stylesheet version of stylesheet.
$media(String) (Optional) The media for which this stylesheet is created. e.g 'all', 'print', 'screen' etc