I'm using a child of the twentyten default theme and I want to hide the sidebar on some pages.
What is the solution for that?
|
I'm using a child of the What is the solution for that? |
|||
|
|
|
Actually, Twentyten has a no-sidebar page template already.
Modify the template option in the page edit screen:
And viola:
|
|||
|
|
|
create a new page template, simply duplicate the current page.php or index.php. remove the following:
and place a template title at the top of the file
Then you can choose that when publishing. NOTE: This will probably impact on your styles, may need to tweak your stylesheets. |
|||
|
|
|
You can use conditional template tags on your standard page file template
or
You can also pass an array
|
|||
|
|