Beta: Feature Request: Preferences > Default Page Template

Hi!

This would help a lot. Now that we have the nice Preferences tab, can we have the Default Page Template in there?

Blank - No Container |Header, Footer is 99% for me, and still I have to set it each time. :slight_smile:

Something like this:

function change_default_page_template() {
global $post;
if ( 'page' == $post->post_type
&& 0 != count( get_page_templates( $post ) )
&& get_option( 'page_for_posts' ) != $post->ID
&& '' == $post->page_template
) {
$post->page_template = "template-blank-4.php";
}
}
add_action('add_meta_boxes', 'change_default_page_template', 1);

Thanks!

4 Likes

We do have a filter, and I actually do something like this in my dev environments:

add_filter('cs_default_page_template', function() {
  return 'template-blank-4.php';
});

We don’t want to draw any more attention to Page Templates because when we do the Theme Options reboot the default page template of the new stack will basically be No Container, Header, Footer and there will be settings similar to a layout where you can enable/disable the header or footer.

1 Like