![]() While it is technically an optional parameter, it is required to actually load a specific stylesheet. $src is the file URL of your stylesheet.$handle is a unique name/ID for the stylesheet and should be prefixed with your theme slug.Take a look at the function signature: wp_enqueue_style( You’ll learn which action hooks to use for specific scenarios in the next sections. You would use this function within an action hook callback in your functions.php file, which you learned about in Custom Functionality. ![]() ![]() Wp_enqueue_style() is the primary function for enqueueing a stylesheet, which tells WordPress that you want to put it in the queue to load.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |