• I’m trying to install my first theme and cannot get past this error.
    It will not load the stylesheet for some reason. This is being running locally through Xampp at https://localhost/wordpress-2.7/wordpress/

    So far I have tried:

    1) dirname( get_bloginfo(‘stylesheet_url’) )
    2) href=”styles.css”
    3) \wp-content\themes\mytheme\styles.css
    4) \wp-content\themes\mytheme\
    5) bloginfo(‘stylesheet_directory’)
    6) bloginfo(‘stylesheet_url’)

    This is my styles.css top section:

    /*
    Theme Name: mytheme
    Theme URI:
    Description: My first theme.
    Version: 1.0
    Author: Self
    Author URI:
    Tags: black, fixed width, two columns, widgets
    */

Viewing 4 replies - 1 through 4 (of 4 total)
  • Please post the actual code from your header.php (inside backticks please – top left next to 1 on the keyboard)…

    Also post the stylesheet code produced in View Source when you attempt to view the page…

    <link rel="stylesheet" href=" etc etc…

    Thread Starter tacticalpink

    (@tacticalpink)

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <style type="text/css" media="screen">

    The stylesheet link is identical to mine…

    Don’t think you need this in the header.php file though..

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    ?>

    Pretty sure you can delete that…

    Also try removing the fields you left blank at the top of the CSS file…

    Theme URI:
    &
    Author URI:

    Or just as a test try with just theme name…

    /*
    Theme Name: Some name
    */

    NOTE: You should not modify the top lines in the CSS file if it is the active theme, if you have, activate another theme, then re-activate it after changes have been made…

    In honesty, i see no problem as to why it doesn’t work, but give the above a whirl anyway…

    Thread Starter tacticalpink

    (@tacticalpink)

    I did some experimenting placing my style sheet into the default theme and it loaded. Eventually I found out that my style sheet was named differently in the theme I’m creating.

    WP will load “style.css” and not load “styles.css”.

    That was the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stylesheet is missing’ is closed to new replies.