How to link CSS file from css folder in wordpress

Tags: css,wordpress

Problem :

I am totally newbie for the wordpress theme development. I am trying to add style.css file which laid in CSS folder of my root folder. How can I add it? Please hurry up, I want my answer at this time if possible.

Solution :

Try with that:

wp_enqueue_style( 'my-awesome-css', get_template_directory_uri() . '/style.css', array(), '1.0' );

Put that in your functions.php file:

function style() {
    wp_enqueue_style( 'my-awesome-css', get_template_directory_uri() . '/style.css', array(), '1.0' );
add_action('setup-style', 'style');

See doc

    CSS Howto..

    javafx ImageView how to use css hover

    How to construct CSS selector targeting attribute with value containing an ASCII line feed?

    HTML/CSS How to have to tags on same line?

    Double Scroll Bars kept showing in Windows Broswers

    How do you add a footer with css display: table?

    How to expand text to full DIV width

    How to remove the gap between each list-item in an unordered list?

    How to make a graphic image responsive in css

    How do I get a CSS class to work in my Javascript file?

    How to determine the 'toggle' status of a CSS toggle input?

    How to find number of style classes defined in a CSS file

    How to apply common JavaScript and CSS for all my jsp pages in the application?

    How to center align circles?

    How do you hide an HTML element based on a series of parent elements

    How to snap divs together vertically in CSS like Pinterest have

    How to position footer correctly with css?

    How to stack multiple divs on top of each other and each have a height of 100%

    How do i hide html until its processed with javascript?

    How to solve CSS background transparency?

    How to add a css to a view in the Controler?

    CSS - EM Values Inconsistent, How To Debug / Explanation

    How can I make the contents of a table cell overflow vertically without also expanding the table cells height?

    How to handle Chrome rendering dynamically added elements with incomplete CSS

    How to get rid of duplicating image when applying own style to Radio/CheckButtons in GTK with CSS?

    How to hide classes on some pages in WordPress?

    How read(get) css style value of a server-side div in code behind(not set)?

    How to set 2 images to be by the side of each other

    img not showing in Safari in attempt to make img map responsive

    How to position multiple elements on one line, if they are in an absolute element?

    How to make a HTML NavBar [closed]