• Hey everyone,

    Complete newbie here when it comes to coding. My website is http://www.thisappisawesome.com and my theme is Mystique. Everything was going perfectly fine until I accidently deleted some code in the header.php under the editor in appearence in wordpress. I tried switching themes hoping it would go away but no matter what I do it still says:

    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template. Template is missing.

    [ Moderator note: please wrap code or log lines in backticks or use the code button. I’ve added the backticks to your post. ]

    This is the code i currently have in the header.php if that helps.

    <?php
    /*
     * @template  Mystique
     * @revised   April 24, 2012
     * @author    digitalnature, http://digitalnature.eu
     * @license   GPL, http://www.opensource.org/licenses/gpl-license
     */
    
    // Header template part, used by all pages on the site.
    // Handles the document head, and the page header section (usually main menu, logo, featured content)
    
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes('html'); ?>>
    
    <head>
      <meta charset="<?php bloginfo('charset'); ?>" />
    
      <title><?php atom()->documentTitle(); ?></title>
    
      <?php atom()->metaDescription(); ?>
      <?php atom()->favicon(); ?>
    
      <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
      <!--[if lte IE 7]>
      <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie.css" type="text/css" media="screen" />
      <![endif]-->
    
      <?php wp_head(); ?>
    
    </head>
    <body <?php body_class('no-js no-fx'); // these classes are removed with js in the "before_page" hook below ?>>
    
      <?php atom()->action('before_page'); ?>
    
      <?php if(atom()->menuExists('top')): ?>
      <div class="nav nav-top">
        <div class="page-content">
          <?php atom()->menu($location = 'top', $classes = 'slide-down'); ?>
        </div>
      </div>
      <?php endif; ?>
    
      <!-- page -->
      <div id="page">
    
        <?php atom()->action('top'); ?>
    
        <div id="page-ext">
    
          <!-- header -->
          <div id="header">
            <div class="page-content">
              <div id="site-title" class="clear-block">
                <?php atom()->logo(); ?>
                <?php if(get_bloginfo('description')): ?><div class="headline"><?php bloginfo('description'); ?></div><?php endif; ?>
              </div>
            </div>
    
            <?php atom()->action('before_primary_menu'); ?>
    
            <div class="shadow-left page-content">
              <div class="shadow-right nav nav-main" role="navigation">
                <?php atom()->menu($location = 'primary', $classes = 'slide-down fadeThis', $fallback = 'pageMenu'); ?>
              </div>
              <?php atom()->action('social_media_links'); ?>
            </div>
    
          </div>
          <!-- /header -->
    
          <?php atom()->action('before_main'); ?>
    
          <!-- main -->
          <div id="main" class="page-content">
            <div id="main-ext" class="clear-block">

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    It’s not the header.php file it’s the style.css file that your WordPress installation has a problem with.

    Don’t post that style.css here BTW unless it’s just the top header lines. 😉

    Where did you get that theme? It looks like it’s not installed correctly or is missing files.

    Edit: Doh! It’s this one right?

    http://wordpress.org/themes/mystique

    Thread Starter air215jordan

    (@air215jordan)

    Hey Jan yes that is the theme I was using before this happened and the one I have installed now now. Any ideas on how to fix the style.css?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Try using FTP or whatever filemanagement tools your host has provided you with navigate to the wp-content/themes directory and make a backup copy of mystique.

    Once you have that copy safely stored then delete just the mystique directory (only that one directory) and then re-install the theme from your WordPress dashboard.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Broken Theme: Template is missing’ is closed to new replies.