June 26, 201610 yr I want to make my style css load after all my plugin css files... how do i do that? This is for a child theme.
June 27, 201610 yr Create a child header.php and move the line that loads the theme CSS to after wp-head() function call: <?php wp_head(); ?> <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" /> But expect all sort of strange things to happen when the page loads if you do this.
June 27, 201610 yr Create a child header.php and move the line that loads the theme CSS to after wp-head() function call: <?php wp_head(); ?> <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" /> But expect all sort of strange things to happen when the page loads if you do this. Which is why you should be using the register/enqueue practice instead of hardcoding the shylesheet link in to the header. That way that way the WP install can keep track of the stylesheets in use. Read more here: http://code.tutsplus.com/tutorials/loading-css-into-wordpress-the-right-way--cms-20402
June 28, 201610 yr Indeed, but it still needs to go after the wp_head. There is nothing wrong with hard coding the CSS into header.php as I n most cases there is only one style.css
Create an account or sign in to comment