[Resolved] killing the sidebar
Hey guys, im wondering if someone could help me with something.
Im wondering if its possible to kill the sidebar in certain posts on my blog i.e when i post pictures and then someone clicks on the links that that post appears without the sidebar and the content appears then in the middle of the page?
Maybe this link will help you.
Figured out how to kiill the sidebar but havent been able to centre the content so that the pictures via category can fill the page…
I’m dying to know how to do this! If not per post, at least per ‘page.’ It would be so cool to choose when to use the sidebar and when not to.
jbeckl – Check out the Page Templates on the codex for per page stuff. You could have a No Sidebar template or something.
jbeckl, maybe you’ll find something helpful here:
Neil Guevara, centering the picture could probably be managed with CSS…unfortunately I do not have the solution for you…not a pro…sorry…but hope it brings you on the right path at least.
Isn’t the default “Kubrick” theme set up this way — so that you can set up templates without the sidebar for single.php and it will display without the sidebar?
You could always use a custom field to turn your sidebar off for individual posts:
$no_sidebar = get_post_custom_values("No Sidebar"); if($no_sidebar == "true") : else : get_sidebar(); endif;
Just set a custom field Key of “No Sidebar” and give it a Value of “true.”
greenshady – Whoa! you just opened up the door for me to seeing the power of the custom field option in WordPress. Thanks a lot!
Niel & jbeckl – If you’re new to WordPress or how to create themes, then download a whole bunch of themes and look at the code of features you like. You’ll learn how to do things quicker by seeing the code than just reading about them in the codex and figuring out how to do it yourself. When you’ve played around with bits and pieces of other themes, things will start to click on how things work and you’ll be able to create themes from scratch fairly easily.
- The topic ‘[Resolved] killing the sidebar’ is closed to new replies.