Creating a custom post template
I am using the “Custom Post Template” plugin so that I can display certain posts with a one column layout, while the rest of my site will display the 2 column layout that I have it set to.
Most people seem to say that I need to make a copy of single.php for my custom template (I named it “one column”), add the “Custom Post Template” plugin code at the start which is:
Template Name Posts: one column
and then I need to delete the line:
$k_option['showSidebar'] = 'blog';
However the Graphene theme’s single.php file doesn’t have any lines like that. So I guess my question is how would I go about creating this template with the Graphene them?
I’m not sure that this is possible using a child theme.
You might want to try this plugin, however:
AnonymousDecember 30, 2011 at 7:16 am #19761
The get_sidebar functions are in the
Just be careful editing core code. I always keep a notepad document with my changes to core code, so when I update I remember all the changes that must be made… otherwise, you’ll have a lot of extra work to do.
Thanks for that. Sorry for stupid questions, but since I am using a copy of my single.php for the Custom Template Plugin, would it be possible to make a copy of the header.php file, with the sidebar function removed, and point my template file to that instead?
Thought I would post the solution in case anyone else is looking for it.
Using the Custom Posts Template plugin, I made a copy of the single.php file, renamed it onecolumn.php
At the top I added the Custom Posts Template plugin code:
Template Name Posts: onecolumn
And then I added in this code just above the header() function.
$graphene_settings['column_mode'] = 'one-column';
AnonymousJanuary 1, 2012 at 12:03 pm #19765
Hey, great job!! I like how you made use of it on your photo pages.
Great topic, helped and achieved what I wanted to. However, I’ve tried everything I know and can’t figure it out: What I need is I want the left sidebar to remain, but the right side to be gone. I’ve looked through a few files for a hint and just can’t find it. Is this even possible, and if so, can anybody tell me what I need to do? I’ve done google searches for WordPress column_mode as well as graphene column_mode and couldn’t find anything.
Thanks in advance!!
You must be logged in to reply to this topic.