wp_enqueue
in your theme’s functions file. See this link for details:
https://developer.www.ads-software.com/reference/functions/wp_enqueue_style/
And see the source code for the default Twenty Seventeen theme for a working example.
You may also want to elaborate on what you mean by “not working”. Do you mean “the style sheet is not loading” or “the style definitions are not working as expected” or something else. “Not working” covers a lot of territory. The more specific your questions, the more specific answers you’ll get.
]]>Here is the reference code to enqueue the stylesheet.
//Enqueue The css
function awesome_script_enqueue() {
wp_enqueue_style('customstyle',get_template_directory_uri().'/css/style.css',
array(), '1.0.0','all');
}
add_action('wp_enqueue_scripts','awesome_script_enqueue');
]]>
<?php
wp_enqueue_style ( string style.css, string $src = '', array $deps = array(), string|bool|null $ver = false, string $media = 'all' )
?>
I uploaded it through Blue Host File Manager. Now I can’t get into my WordPress dashboard.
Where did I mess up?