| Author | Posts |
|---|---|
| Author | Posts |
| May 30, 2011 at 6:41 pm #1564 | |
|
tikk |
As indicated by the subject line, I’m interested in creating certain pages which will carry one or the other sidebar. My home page contains both sidebars in a three-column layout. On at least one other page I simply want to include the left sidebar but not the right (or vice versa, it doesn’t really matter). Presently there is an option when creating pages to “disable sidebar”, which nukes both. I looked at the page.php template but it’s not obvious what I’d need to perhaps comment out or insert. I realize that removing one sidebar essentially converts the 3 column layout to a two column layout but I understand enough CSS to fix this. Perhaps too there’s a way to create a separate page2.php template but I when creating new pages inside WP I only see two options in the dropdown for templates from which to choose (‘default’ and ‘tag archive’). Any help would be hugely appreciated. |
| September 3, 2011 at 2:15 am #1565 | |
|
Julian |
Hello, Any solution? Thanks EDIT: Ok, I think I found one .narrowcolumn{
float:left; margin:0 1%; padding:0 0 20px; width:53%; } Where you can see width is set up to 53% I’ve created a new one below, called .narrowcolumn2 with a new width, for example 75%. Now, if you look under page.php, searching this <div id="content" class="<?php if ($tech['single_sidebar'] == "Yes" && $tech_disable_sidebar != "on") { echo "narrow"; }else {echo "wide";}?>column">
just modify it at the end with column2 and search again down about the code that shows for example the right column, it should be this: if ($tech['single_sidebar'] == "Yes" && $tech_disable_sidebar != "on") { tech_show_sidebar("r"); }
and comment it. I think it’s working well. Let me know |
You must be logged in to reply to this topic.
