Tagged: x
-
AuthorPosts
-
December 21, 2016 at 1:50 pm #1300873
blue928ParticipantAs of WordPress 4.7, the new feature that allows Posts to use Page templates has officially been built into WordPress Core.
Even though I’m running WP 4.7 and the latest version of X and Cornerstone, this options isn’t available.
You may be implementing this for the upcoming update, but in the meantime, I want to enable this to take advantage of the feature as soon as possible.
In addition to the Template Name file header, the post types supported by a template are specified using Template Post Type: post, foo, bar. Here’s an example:
<?php /* Template Name: Full-width layout Template Post Type: post, page, product */ // … your code hereX uses a different approach to organizing and creating its Page templates (as described in Customization best practices.)
Inside of the root folder of X theme, I see ‘template-blank-1.php’ with TEMPLATE NAME: at the top. Would I simply copy those 12 template files to my child theme and add TEMPLATE POST TYPE underneath that? Or would you recommend a different approach that works better given X views? I moved forward with adding that myself, and so far everything seems to work fine, just want to make sure I’m not missing editing other important files that may need to be addressed.
December 21, 2016 at 6:27 pm #1301066
RadModeratorHi there,
Thanks for writing in.
Yes, you’ll only need to copy the root template and edit them. You only need to copy views files if you need to customize them as well.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1300873 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
