Twenty Twenty Two – CPT Template Error – “Theme without header is deprecated”
-
Hi,
I hope I write it in the correct section, as this presumably applies to Twenty Twenty Two and similar full site editing themes coming in 5.9
We have a plugin that creates own Custom Post Type (CPT) and has it own single-*CPT* template included in the plugin files.
The template is quite simple (single-*CPT*.php)
<?php /*Template Name: Scrollsequence CPT Template */ get_header(); // Here is the HTML that works fine get_footer();
All works fine with most themes, even with 5.9. Problem is with Twenty Twenty Two where I am getting this error:
Deprecated: Theme without header.php is deprecated since version 3.0.0 with no alternative available. Please include a header.php template in your theme. in C:\wamp64
Same goes for the footer
Deprecated: Theme without footer.php is deprecated since version 3.0.0 with no alternative available. Please include a footer.php template in your theme. in C:\wamp6
Anyone else got this error with Full Site Editing enabled Theme?
Thank you,
Ales
- The topic ‘Twenty Twenty Two – CPT Template Error – “Theme without header is deprecated”’ is closed to new replies.