Forums

Template is missing (What?) (3 posts)

  1. Anonymous
    Unregistered
    Posted 3 years ago #

    Okay so I designed the template and uploaded it, but its telling me that the template is missing.

    Here's the template page's code:

    <?php
    get_header();
    ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <?php the_date('','<h2>','</h2>'); ?>
    
    <div id="contentcontainer">
    <div id="content">
    <img src="Images/Content Header.png" width="875" height="10">
    <img src="Images/NewsHeader.png" width="875" height="50" />
    <div id="postcontent">
    <div class="post" id="post-<?php the_ID(); ?>">
    	 <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    	<div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_tags(__('Tags: '), ', ', ' — '); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>
    
    	<div class="storycontent">
    		<?php the_content(__('(more...)')); ?>
    	</div>
    
    	<div class="feedback">
    		<?php wp_link_pages(); ?>
    		<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    	</div>
    
    </div></div></div>
    
    <?php comments_template(); // Get wp-comments.php template ?>
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    <?php posts_nav_link(' — ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  2. Anonymous
    Unregistered
    Posted 3 years ago #

    Ok are you creating this theme from scratch or are you using another theme as a base?

    In either case you must have a style.css style sheet even if its empty and it must have your theme name in it eg. this is the head of the default theme's style.css

    /*
    Theme Name: Default
    Theme URI: http://wordpress.org/
    Description: The default WordPress theme based on the famous Kubrick.
    Version: 1.6
    Author: Michael Heilemann
    Author URI: http://binarybonsai.com/
    Tags: blue, custom header, fixed width, two columns, widgets

    Kubrick v1.5
    http://binarybonsai.com/kubrick/

    This theme was designed and built by Michael Heilemann,
    whose blog you will find at http://binarybonsai.com/

    The CSS, XHTML and design is released under GPL:
    http://www.opensource.org/licenses/gpl-license.php

    */

    the important line being
    "Theme Name: Default" delete this and your theme goes pop. the name can be whatever you want

  3. chaoskaizer
    Member
    Posted 3 years ago #

    what is the full error message? which template is missing?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.