Anyway to apply a page template in a theme for the Main Site only in Multisite?

Basically, the main site in a Multisite (blog_id = 1) has the same theme as the rest of the sites. It’s a subdomain Multisite, however, I need some way to only allow page templates to be selected for the main site vs. other sites.

Basically if something like this were possible, it would help a lot:

<?php
/*
* Template Name: City Categories
* Template Post Type: page
* Template Blog Id: 1
*/

get_header();

// Rest of Page…

get_footer(); ?>

And than they can only select this template from the backend of Pages on the main site only.

Is something like this possible? Or perhaps I have to hook into the actual hook for displaying the page template metabox and do something in there?

Read more here:: Anyway to apply a page template in a theme for the Main Site only in Multisite?

Leave a Reply

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