How to Solve “This Theme is Broken. Template is Missing” Error

From this tutorial you’ll learn how to solve “This theme is broken. Template is missing” error when there is no header section in the style.css file.

zemez wordpress themes
Solving “This Theme is Broken. Template is Missing” Error
  • First, let’s log in to WordPress Dashboard using your login credentials. Navigate to Appearance > Editor tab on the left of the Dashboard.
  • Locate style.css file in the right column and open it for editing.
  • As you can see, the header section is missing in the file. It is the reason why the error appears. Let’s add the following information to the file.“This Theme is Broken. Template is Missing” Error
  • Here is the example of the header part in style.css. Please, feel free to correct it according to your actual theme name and version.
/*
Theme Name: Twenty Seventeen
Theme URI: https://wordpress.org/themes/twentyseventeen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Seventeen brings your site to life with immersive featured images and subtle animations. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentyseventeen
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
  • Update the file in order to save the changes. As a result, the error will disappear.
monster one