WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Stylesheet is missing? (17 posts)

  1. distinctnews
    Member
    Posted 4 years ago #

    Hello!

    I just uploaded a theme but the it says the following:

    Broken Themes
    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    Name Description
    Distinct Stylesheet is missing.

    I did however include a stylesheet. Does anyone know what the problem is?

    Thanks!

  2. distinctnews
    Member
    Posted 4 years ago #

    I found a post on wordpress that said everything has to be in the same folder so I moved everything to one folder.

    Now the message is gone, but I can't see my theme...

    Any idea?

  3. distinctnews
    Member
    Posted 4 years ago #

    Another post said that I have to create my folder and then my folder-news and put in it the style.css and main page.

    I did that, still nothing...

  4. asdfg asdf
    Member
    Posted 4 years ago #

    what is your theme? or did you create your own? just follow the folder structure of the default theme if you created the theme.

  5. ClaytonJames
    Member
    Posted 4 years ago #

    The path should look like this:

    /wp-content/themes/theme_name/theme_contents

    - not like this:

    /wp-content/themes/theme_name/theme_name/theme_contents

    - and not like this:

    /wp-content/themes/theme_name.zip

  6. distinctnews
    Member
    Posted 4 years ago #

    @wetwetwafu, i created my own

    @ClaytonJames, I do have that, but still doesn't work.

    The order is /wp-content/themes/Distinct/ then when I open Distinct, there's all the files.

  7. ClaytonJames
    Member
    Posted 4 years ago #

    The issue must then be something within the theme itself. Does your style sheet begin like this:

    /*
    Theme Name: Distinct
    Theme URI: //www.your_site.com/
    Description: Blah blah, so and so, short description here...
    Version: 0.5
    Author: Your Name Here
    Author URI: //www.your_site.com/
    */

    Reference item 3 on this page: http://codex.wordpress.org/Theme_Development

  8. asdfg asdf
    Member
    Posted 4 years ago #

    are you sure you have these at the beginning of your style.css?

    /*
    
    Theme Name: Distinct
    Theme URI: http://yourURL.org/
    Description: This wordpress theme was created for Distinct.
    Version: 1.0
    Author: distinctnews
    Author URI: http://distinctnews.com/
    Tags: distinctnews, distinctnews Distinct, Distinct, Distinct, Distinct, Distinct, Distinct
    
    	MDistinct v1.0
        This theme was designed and built by E distinctnews,
    	http://distinctnews.com/
    */

    or check your other if they have template name at the beginning.

    or check your typo.

  9. distinctnews
    Member
    Posted 4 years ago #

    Awesome, now it's up! :D

    One problem though, the page is all text with no layout design. Any idea?

  10. ClaytonJames
    Member
    Posted 4 years ago #

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

  11. distinctnews
    Member
    Posted 4 years ago #

    Where do you paste that? :S

  12. distinctnews
    Member
    Posted 4 years ago #

    PS: My style sheet is named style.css not stylesheet if that helps or changes the code you gave me.

  13. ClaytonJames
    Member
    Posted 4 years ago #

    That code (in general) might often be found in header.php.

    I recommend you read all you can on how to create a theme and the basic WordPress theme structure. The link I posted above, and searching in the Docs will reveal a lot of information on the subject, and there are sure to be many good "by the numbers" tutorials found on Google as well.

    Perhaps inspecting the file contents of a few pre-existing themes (other than the default theme) would be of benefit as well.

  14. distinctnews
    Member
    Posted 4 years ago #

    Awesome, I just pasted it at the very top of my style.css and it worked.

    The only thing missing is the pictures. For some reason they got unlinked. Can you please tell me what need to be inside my /wp-content/themes/Distinct/ and if I can create sub-folders?

    Thanks again for all the help!! I really appreciate it!

  15. ClaytonJames
    Member
    Posted 4 years ago #

    I just pasted it at the very top of my style.css and it worked.

    php code doesn't normally belong in a style sheet, and that is not a correct solution. Think about it for a minute. If you were creating a site in just HTML, would you find or place the path to the style sheet inside of the style sheet?

    Can you please tell me what need to be inside my /wp-content/themes/Distinct/

    I'm afraid I can't. You created the theme. You can create sub-folders if you like, just as long as your files properly reference the path to any assets located in those folders. Clearly you are going to do this your own way the first time rather than take a breather and pay attention to advice or any published learning materials, but I do admire your focus. Carry on, soldier!

    :-)

    Good luck and best wishes!!

  16. distinctnews
    Member
    Posted 4 years ago #

    Awesome, I think I got it :D

    Thanks a lot for the help!

  17. sarjanwebdev
    Member
    Posted 3 years ago #

    I have WordPress 3 on Windows 7 IIS 7.

    I saw the same message and I had to change permission for the theme folder to inherit from the parent folder, that applied even to the child folders and files in theme folder. All fixed!

Topic Closed

This topic has been closed to new replies.

About this Topic