Solved

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

Posted on 2009-07-01
20
368 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:Rowby Goren
  • 14
  • 6
20 Comments
 
LVL 3

Expert Comment

by:razor19
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
Thanks razor19,

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

Rowby
0
 
LVL 3

Expert Comment

by:razor19
Comment Utility
Cool - let me know if you need any help.
0
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
Ah,

I found and activated the widget to show my pages.

Rowby
0
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 3

Expert Comment

by:razor19
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 3

Accepted Solution

by:
razor19 earned 500 total points
Comment Utility
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
 
LVL 3

Expert Comment

by:razor19
Comment Utility
0
 
LVL 3

Expert Comment

by:razor19
Comment Utility
Yes - that link you posted is precisely what I am saying. :)
0
 
LVL 9

Author Comment

by:Rowby Goren
Comment Utility
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
 
LVL 9

Author Closing Comment

by:Rowby Goren
Comment Utility
thanks and please look at my next wordpress question which I am putting up now.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Now that you've installed WordPress 2.9 (http://www.experts-exchange.com/articles/Web_Development/Blogs/WordPress/WordPress-2-9-What-to-Expect-When-Upgrading-to-WordPress-2-9.html?) on your site, you need to install some plugins to get the most out …
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now