• Resolved distinctnews

    (@distinctnews)


    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!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter distinctnews

    (@distinctnews)

    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?

    Thread Starter distinctnews

    (@distinctnews)

    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…

    asdfg asdf

    (@wetwetwafu)

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

    Clayton James

    (@claytonjames)

    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

    Thread Starter distinctnews

    (@distinctnews)

    @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.

    Clayton James

    (@claytonjames)

    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: https://codex.www.ads-software.com/Theme_Development

    asdfg asdf

    (@wetwetwafu)

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

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

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

    or check your typo.

    Thread Starter distinctnews

    (@distinctnews)

    Awesome, now it’s up! ??

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

    Clayton James

    (@claytonjames)

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

    Thread Starter distinctnews

    (@distinctnews)

    Where do you paste that? :S

    Thread Starter distinctnews

    (@distinctnews)

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

    Clayton James

    (@claytonjames)

    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.

    Thread Starter distinctnews

    (@distinctnews)

    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!

    Clayton James

    (@claytonjames)

    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!!

    Thread Starter distinctnews

    (@distinctnews)

    Awesome, I think I got it ??

    Thanks a lot for the help!

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