• What is required for themes for the latest version of WordPress? What files are imperative to a working theme? I’ve used the files that I have always used in earlier versions, and when I preview self-made themes in my dashboard, I get a completely blank theme on my site.

Viewing 9 replies - 1 through 9 (of 9 total)
  • What files are imperative to a working theme?

    At the very minimum, a WordPress Theme consists of two files:
    style.css
    index.php

    http://codex.wordpress.org/Theme_Development

    Thread Starter momojojo

    (@momojojo)

    Maybe I am doing something else wrong.
    I have index, style, header, footer, and comments.
    Could there be an error in my coding?
    My index is the same index that comes in the WP download.
    I have checked to make sure all of my coding is closed appropriately, etc.

    Sounds like there’s an error in your coding. Try checking header.php.

    Thread Starter momojojo

    (@momojojo)

    Hmm. I uploaded it without my header, and I received this message during the preview :

    Error!
    the template St2 does not exists, note that templates are case sensitive and you must write the name exactly as it is

    & thanks esmi for helping me!

    You can’t just delete header.php unless you’re incorporating that code in your index.php file. The fact that you’re getting a completely blank screen when you try to preview your theme suggests that the error is fairly early in the template loading process. So looking for a coding problem in header.php is a good place to start.

    Thread Starter momojojo

    (@momojojo)

    If I posted my coding here, could any take a look at it and see if they find anything? I`ve been looking for a while, now.

    You don’t want to post that much code here. Post it to the wordpress pastebin.

    Thread Starter momojojo

    (@momojojo)

    That’s not PHP source. Its generated code. The PHP would be much more helpful. But… maybe that is your source and you don’t have any PHP in it? Either way, I don’t really see much to suggest that WordPress has anything to do with page, which might be your problem. Are you following the guidelines for creating a theme?

    However, I do see some curly quotes in there. Those will blow out your page. Look at lines 9 and 10, maybe other places as well.

    If you pasted the entire page source you have another problem too. The page doesn’t fully load. You are missing closing tags for </body> and </html> maybe others too.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Theme compatibility?’ is closed to new replies.