Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix New created theme not loading style.css

Discussion in 'Misc WordPress Requests' started by stevecorwin, Feb 4, 2018.

  1. stevecorwin


    New created theme not loading style.css, by stevecorwin

    Following steps found online, I’ve created a new WP theme (very basic as of now) using WAMP localhost.

    Everything I’ve done as per the various online tutorials has worked except the final step of loading the stylesheet. I’ve tried at least a dozen different variations of code found online in my function.php file to no avail. Nothing I add to the style.css has any effect on my site. If I add the css to the additional css section, it works. So what am I doing wrong in the function.php file that is preventing the stylesheet from loading

    Here is my current functions.php code:

    <?php wp_register_style( ‘style’, get_stylesheet_url() );

    wp_enqueue_style( ‘style’, get_stylesheet_uri() );


    New created theme not loading style.css

Share This Page

Monarch Social Sharing Plugin