Wordpress - I want some pages to be 2 column and some pages to be 3 column -- is it possible?

I have a client who wants a wordpress site.  She wants the "non blog" pages to be two columns and the blog pages to be three columns.

Is this possible?  And if so how can that be accomplished?  With a special template?  With a special widget?

Thanks,

..Rowby
LVL 9
Rowby GorenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

razor19Commented:
Hi Rowby,

Yes, this is easily accomplished. Different elements of wordpress are defined by the different files in your theme folder.

Within your theme - "single.php" would be the template that you use for your posts (blog). "page.php" would be the template that you use for non-blog pages. You can create custom page templates as well.  Your CSS within single.php and within page.php can be completely different.

You can also create custom page templates. Each page (non-blog) page can have different styling. See: http://codex.wordpress.org/Pages#Page_Templates

Multiple post templates require some uhm, lets say hacks. It's not as easy as creating multiple page templates.

Take a look at this page: http://codex.wordpress.org/Using_Themes - Scroll down and look at the section called "creating themes". You will see which template files produce which types of pages, and what needs to be included in each file.

Other useful links:
http://codex.wordpress.org/Templates
http://www.jonathanwold.com/tutorials/wordpress_theme/
0
Rowby GorenAuthor Commented:
Thanks razor19,

I will be working on your solutions tomorrow. Stay tuned!

Rowby
0
razor19Commented:
Cool - let me know if you need any help.
0
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Rowby GorenAuthor Commented:
Hi razor19,

Here's my test wordpress site:

http://rowby.com/wordpress2/

NOt sure if this template has built into it any 2 column versions.  

Any thoughts before I dig in?

Thanks

...Rowby
0
Rowby GorenAuthor Commented:
It's weird. In the back end I add a page (not a blog) but it does not show upo in the left navigation.

In fact in the back end I cannot see any of the pages (not blogs) even listed.)  So I can't even edit them.

Am I missing a widget or something?  

Rowby
0
Rowby GorenAuthor Commented:
Ah,

I found and activated the widget to show my pages.

Rowby
0
Rowby GorenAuthor Commented:
But, I sse that those pages are also three columns.  So I am back to seeing how to make page pages 2 column.  I will review your initial comments and links.

...Rowby
0
Rowby GorenAuthor Commented:
Ah, I edited th page.php  and it seems to have done the trick!.

Stay tuned. I may have a few questions as I do this.

Rowby
0
razor19Commented:
LOL - Sorry - I was away for the computer.

Yes - that's right - editing the page.php will give your non-blog pages a different look.

You can create different templates for pages too - if you need - and select them under "page template" when you create the pages.

I'll be around now for a while - let me know if you need more help!
0
Rowby GorenAuthor Commented:
Hi razor19.

So far all is working fine.

1)  The "Page" pages  are two column with the pages navigation on the left
2)  The Blog pages are 3 columns with the page navigation on the left and the blog stuff on the right.

I think all I need from you now is how do I make the home page like a "Page" page, -- two columns with the pages navigation on the left.

Thanks

Rowby
0
Rowby GorenAuthor Commented:
Some more issues.

THere are items in this template that I don't want to be live and I don't know how to deactivatre them.

For example:
Left column: Navigation.  I don't see a widget for that in the back end.  The navigatin includes Home and About and I don't see where those are coming from in the wp-admin.

The blogroll on the right.  How do I turn that off?  I don't see a widget for that.

Perhaps there are wordpress settings that turn these things on and off???  Hmmmm  I'll dig through the configuration ....
0
Rowby GorenAuthor Commented:
Hi razor19,

HEre's another question (and pl;ease let me know if I should post it as a separate question.

Regaridng H1 tags.  I am trying to switch the title H2 tags to H1 tags.

This article says how to do it  but I am a bit lost because my single.php page already has h1 as the title tag.  Is there a plugin or widget that can do it or do you know how to switch title h2 tags to H1 tags.


http://www.medianetrix.com/wordpress/5/maximum-seo-with-wordpress-h1-header-tags/
HEre's my single.php
 
<?php get_header(); ?>
 
	<div id="content_box">
	
		<div id="left_box">
	
			<div id="content">
		
				<div id="content_inner">
<?php 
				if (have_posts()) : 
					while (have_posts()) : the_post(); ?>
		
					<h1><?php the_title(); ?></h1>
					<p class="post_author"><em>by</em> <?php the_author(); ?></p>
					<div class="format_text">
<?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
					</div>
		
				</div>
		
				<?php comments_template(); ?>
<?php 
					endwhile;
				else: ?>
	
					<h1>Uh oh.</h1>
					<div class="format_text">
						<p>Sorry, no posts matched your criteria. Wanna search instead?</p>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
					</div>
				
				</div>
<?php 
				endif; ?>
		
			</div>
		
			<?php include (TEMPLATEPATH . '/left_bar.php')?>
	
		</div>
	
		<?php get_sidebar(); ?>
		
	</div>
 
<?php get_footer(); ?>

Open in new window

0
Rowby GorenAuthor Commented:
Hee hee

I hope you don't mind me using this experts  Experts Exchange question  as a notepad!!

As I work I see that the individual page titales are now inded h1.  It appears only the blog titles are h2.  I guess there is a similar page for blog pages that I need to look for the h2 tag....

Rowby
0
Rowby GorenAuthor Commented:
H1 issue is resolved.

Now I am back to getting the home page to have two columns instead of 3.

Could that be because the home page is actually a blog page?   IF that is the case then I need to make the home page a regular page.

Then I would need a link to the site's "BLOG section"  right?  

Hmmmmm.   How to do that....

....Rowby
0
Rowby GorenAuthor Commented:
I found this link showing how to make the home page a "regular page".

http://www.facilitatingchange.org/2009/05/wordpress-blog-not-on-home-page/

I assume it will work and solve "that" issue.

I have to leave for a few hours.  I'll report when I get back.

In the mantime if you have any thoughts just post them  here.

Rowby
0
razor19Commented:
Hey Rowby,

To make a page the home page - go to settings, reading - Change the front page display settings to "a static page" - then for front page, choose your created page from the down down.

If you're worried about SEO - download the all-in-one SEO plugin to help define the page meta data, as well as setting nofollow settings for search robots. If something spiders your content i.e. category pages, etc, it will produce duplicate results.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
razor19Commented:
0
razor19Commented:
Yes - that link you posted is precisely what I am saying. :)
0
Rowby GorenAuthor Commented:
razor19,

YOu've answered my question and I am awarding you the points.

I have some more formatting and setting questions and am posting that question now here.

Please look if you have some time.

Rowby
0
Rowby GorenAuthor Commented:
thanks and please look at my next wordpress question which I am putting up now.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.