In this tutorial, I am going to demonstrate how to use the style in WordPress function.
Follow the steps:
Step 1: Put the CSS in a separate file and save it in your theme directory with the .css extension.
Step 2: Add the following code in your functions php:
function my_scripts() {
wp_enqueue_style( 'my-style', get_stylesheet_uri(),array(),'0.1' );
}
add_action( 'wp_enqueue_scripts', 'my_scripts' );
0 Comments
If you have any question please ask?