• Uncategorised
  • 0

WordPress – Child theme 'Template is missing' error

Template is missing appears as an error in your WordPress admin section when there s an issue with your theme stylesheet header (the commented section in your style.css).
1

In the child theme example below you ll notice the line Template: twentyfifteen .

/* Theme Name: Twenty Fifteen Child Theme URI: http://wordpress.com/twenty-fifteen-child/ Description: Twenty Fifteen Child Theme Author: John Doe Author URI: http://example.com Template: twentyfifteen Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: twenty-fifteen-child */

The Template line needs to show the directory path of your parent theme.

The template for the Twenty Fifteen example (/wp-content/themes/twentyfifteen) would be twentyfifteen.

I hope that helps!

About the author / Andrew Taylor

A senior UI designer with over 16 years of web design and web development experience working for some of the largest companies in the UK.

An expert in all things Magento and WordPress.

References

  1. ^ stylesheet header (codex.wordpress.org)

Follow this reference: WordPress – Child theme 'Template is missing' error

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *