• Ok, I’m developing a theme from the ground up for the first time.

    Just to make sure I have the hange of it, I have a simple setup, just to get started. I repeat, this is not a theme that is for use right now. It’s not properly formatted or anything.

    There are three files in the theme.

    Contents of index.php:

    <?php get_header(); ?>
    Yo momma
    <?php get_footer(); ?>

    Contents of header.php:

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

    Contents of footer.php:

    </body>
    </html>

    If I understand, that should display “Yo Momma” when the theme is activated.

    Instead I get a blank screen, and this is the source:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
    <BODY></BODY></HTML>

    From where is it pulling that? And why is it ignoring my theme if the three files are all present?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter saintehlers

    (@saintehlers)

    it’s available to be seen: http://wptest.herbertlives.com

    (not that there’s anything to see with the theme activated)

    Thread Starter saintehlers

    (@saintehlers)

    Looks like that html 4 code is an IE thing… firefox shows no code at all.

    I’ve updated the files, right now I’m using just the index.php file. The contents:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>stuff</title>
    <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
    </head>
    <body>
    Yo momma
    </body>
    </html>

    But I don’t know why it’s not using the index.php file. I’ve verified that it’s in the directory it should be. And there is a css file with the WordPress header information:

    /*
    Theme Name: Monkey Duck
    Theme URI: -
    Description: The first of the "I Am A Genius" themes
    Author: Eric J. Ehlers
    Author URI: http://thelemur.net/
    Version: 1.0
    Tags: blue, two-columns, fixed-width
    
    License:
    License URI:
    
    That is all.
    */
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Theme Development: Beginning’ is closed to new replies.