WordPress Enqueuing Styles

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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


Got any WordPress Question?