WordPress.org

Ready to get started?Download WordPress

Forums

Broken theme.... any ideas? (10 posts)

  1. goldfish654
    Member
    Posted 9 years ago #

    *Growls*

    I made myself a design this afternoon, and I'm having a few problems getting it to work as a 1.5 theme. I used Kubric as a templete for the files, simply broke my .htm file up into the required parts and saved over.

    However, I'm getting Broken theme: templete file missing. Well, the templete file isn't missing (I can see it right there!). What are the possible causes for this particular error? As far as I can tell, I've not referenced to any files that arn't in the directory, and all the permissions are correct (I overwrote them a few times to be sure).

  2. samsm
    Member
    Posted 9 years ago #

    When I had this error happen to me, it was because I wasn't referencing the template correctly. In other words this line in style.css was wrong:
    Template: name-of-template

    It should have been:
    Template: case-sensitive-directory-name
    (on one line)

    Hope that was your problem too. :-)

  3. satoshi
    Member
    Posted 9 years ago #

    <i>simply broke my .htm file up into the required parts and saved over.</i>

    That's why. They need to be php files.

    Samsm, I can't find that line anywhere in any of my style.css files, but my themes work just fine.

  4. goldfish654
    Member
    Posted 9 years ago #

    it was the case sensitive templete thing in the style.css file.

    I did save them as .php files, I'm not that dumb :p

    I think what threw me is the fact the templete: line in the style.css file said "optionally name of parent theme", so, being the lazy bugger that I am I didn't change it :p

    Thanks for that :)

  5. satoshi
    Member
    Posted 9 years ago #

    I cannot, for the life of me, find this template: line!

    This is the header of my style.css:

    /*
    Theme Name: Sato - Blue
    Theme URI: http://trashfolder.org/satoshi
    Description: Based on the Kubrick theme (WP 1.5's default theme). Modified by Satoshi.
    Version: 1.5.2
    Author: Tony Lademan
    Author URI: http://trashfolder.org/satoshi
    */

    It works perfectly fine.

  6. goldfish654
    Member
    Posted 9 years ago #

    Hmm. Maybe if the line isn't present it simply doesn't look for the directory name which would be specified. Well, mine works fine after correcting that.

  7. goldfish654
    Member
    Posted 9 years ago #

    Just to confirm that, yes, I've removed that line and it still registers the theme as "working"... so that must be the deal.

  8. samsm
    Member
    Posted 9 years ago #

    The template line in the stylesheet is only needed if you want to base your theme on another theme. So if the template line isn't there and everything works fine, don't worry. :-)

    rehash: if you raen't basing your theme on another theme, the template line in style.css isn't needed.

  9. satoshi
    Member
    Posted 9 years ago #

    Ah! I see how it works! I just added that line to my stylesheet and got the following message in WP: The active theme is Sato - Blue. The template files are located in wp-content/themes/default. The stylesheet files are located in wp-content/themes/satoblue. Sato - Blue uses templates from WordPress Default. Changes made to the templates will affect both themes.

    That's pretty nifty.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.