Community Forums › Forums › Archived Forums › Design Tips and Tricks › Multi-site page templates usable for all sites
Tagged: Page Templates
- This topic has 5 replies, 2 voices, and was last updated 10 years, 2 months ago by
Badlywired.
-
AuthorPosts
-
January 14, 2015 at 8:07 am #137440
tldagent
MemberI use the Genesis theme framework for WordPress and there are several pages templates in the main Genesis theme folder such as:
page_archive.php
page_blog.php
page.phpWhat I'm looking for is to create a custom page template that can be accessible to all my websites in a multi-site without having to build the page and upload it to the child theme directory. So one template that can be selected by a user under the 'Page Attributes', Template selection.
Basically the page is going to be a blank page used for iframing into a facebook tab, just looking to make it simple for individual sites in a multi-site environment.
I have created a template called page_blank.php but it doesn't show up in the drop downs in all my sites. Thank you for your help.
January 14, 2015 at 4:03 pm #137480Badlywired
MemberDid you solve, this because it should work.
I even did it in my test multi site and it worked
my page_blank.php looked like this
<?php /* Template Name: Page Blank */ ?>
My techy blog WordPress and stuff badlywired.com
January 15, 2015 at 10:35 am #137557tldagent
MemberNo, didn't work at all. I cannot see or select this page template on any of my sites in the multi-site instance. The Genesis theme folder is in the core wordpress installation.
Thanks for the quick reply, my notification went into spam folder so I didn't see it until checked.
January 15, 2015 at 11:02 am #137559Badlywired
MemberStrange. All I can say is it worked fine in my test multisite. I assume that your subsites are actually using Genesis child themes of course.
When you say "but it doesn’t show up in the drop downs in all my sites. " do you mean that or "but it doesn’t show up in the drop downs in ANY OF my sites.
If it is showing in some, but not others, I would be asking what is the difference - different themes? different plugins?
If it is not showing in ANY, then the first thing I'd do is install the Genesis 'Sample' theme and create a clean new subsite and work from there.
My techy blog WordPress and stuff badlywired.com
January 15, 2015 at 11:27 am #137565tldagent
MemberDoesn't show up in any of my sites. The only way it can show up is to add that page to the child theme of the Genesis child theme.
January 15, 2015 at 11:37 am #137568Badlywired
MemberI'm not trying to be funny but are you missing something obvious?
The Child Theme and Page Template mechanisms are inbuilt to WordPress not specific to Genesis.
So double check that the child theme is correctly a child theme, i.e. the style.css contains this line
Template: genesis
in the comment block http://codex.wordpress.org/Child_ThemesAnd of course the directory name that contains your genesis code is 'genesis'
If that is in order, the next thing you want to check is that the permissions and ownership of page_blank.php as it is possible that you have created a file that you can obviously see (via ftp I assume?) but may not have permission to be read by php programs being run by the webserver user. Changing permissions to 754 if required.
My techy blog WordPress and stuff badlywired.com
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.