WordPress.org

Ready to get started?Download WordPress

Forums

Stylesheet not being loaded (2 posts)

  1. MichaelWallis
    Member
    Posted 4 months ago #

    Hi guys.

    I am having some trouble getting my stylesheet to load when creating themes. I have included the

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" >

    into the header of the theme and my stylesheet is named "style.css" but it simply does not load the styles? Not sure what I am missing here.

    Thanks!

  2. mlddev
    Member
    Posted 4 months ago #

    Try the following:

    <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="all" />

Reply

You must log in to post.

About this Topic