![wordpress using unpkg wordpress using unpkg](https://www.datasymbol.com/images/barcode/faq/tech/websdk/wp-pass-barcode-input-wordpress.png)
$handle: Every style sheet (or script) in WordPress needs a unique name so that you (or a plugin) can refer to it later.To add our style sheet file, we use the wp_enqueue_style() function, which accepts 5 parameters:
#WORDPRESS USING UNPKG UPDATE#
Update the code in your functions.php and add the code from line 6 below: You can change it to Bootstrap or any CSS you like. As an example for this tutorial, I will add the PureCss framework. This code doesn’t do much, so let’s start adding style sheets. Therefore, if your theme is called “personal-theme”, rename the above callback function to ” personal_theme_enqueue_styles ” and add_action()change the name in the function accordingly. To avoid name conflicts, it is best to add the subject name before the function name. Note that in this case, we do not need the last two parameters, so we will not pass them, but we will introduce them later.
![wordpress using unpkg wordpress using unpkg](https://res.cloudinary.com/practicaldev/image/fetch/s--uALVNkak--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fnvcjsgg08ff5wjhfrv.jpg)
![wordpress using unpkg wordpress using unpkg](https://mobiosolutions.com/wp-content/uploads/2018/09/VueJs-min-768x384.png)
If you have not used WordPress to create a website before, you may be accustomed to using and tags.
#WORDPRESS USING UNPKG HOW TO#
In this article, I will share with you how to introduce CSS styles and Javascript in WordPress themes in the right way.