Including a stylesheet in functions.php

For some reason my stylesheet isn’t being included on my webpage. I’m new to php so maybe my code is wrong. This is how I’ve tried to do it;

function my_css(){
        wp_register_style( 'my_styles', get_template_directory_uri() . '/css/my_styles.css' );
    }

add_action( 'wp_enqueue_scripts', 'my_css' );

Read more here: Including a stylesheet in functions.php

Leave a Reply

Your email address will not be published. Required fields are marked *