Theme Development: Beginning
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Theme Development: Beginning’ is closed to new replies.