WordPress Static Front Page Options to Consider

This guest post was submitted by Jeff Houdyschell from WordPressMax.com his site provides WordPress guides and installation for the “geek” impaired.

With the growing popularity of blogs everyday more people are getting familiar with, and comfortable using the various blogging platforms. With that webmasters are turning to content management systems like WordPress to power entire websites.

One of the options of WordPress is to choose a static front page, creating a page that shows the same content instead of the the blog loop. Most WordPress bloggers are familiar with this option, however a few things should be considered beforehand.

The steps to use a static front page are quite simple: first two pages (not posts) need to be created, one for the static front page and another for the blog loop. The static front page can have whatever title you want but I suggest you call it the title of your website. Add all the content on this page that you want to show on the front page. Title the blog page “Blog” with the same page slug. Add no content to the blog page.

Go to options, then the reading subpanel, select the static front page option and choose the respective pages to use from the drop down box. Now here is where your blog theme comes into play. If your theme has a navigation bar in the header, things can get a bit messy here and my require you to customize the theme.

The navigation bar on most WordPress themes have a Home or Blog link that point to the main URL and also show links to any additional pages created. So adding a Home page or Blog page to use the static front page option my show these links twice in the navigation bar. So you may want consider learning how to change this by hard coding the navigation bar in the themes header.php file.

Another thing to consider is the static front page itself and what you want it to look like. While you probably want it to have the same look as the rest of the site you may not want it to show the same sidebar items or the title of the page just above the content.

One thing I suggest changing, or actually removing, is the title of the the page that appears right above the content on the page. If you want the site to look like a static or “regular” website then you may want to remove this, especially if the title of the page is generic like “Home”.

You have two options for removing the title on the front page, one is to edit the page.php template to remove the title on all pages or create a custom page template to use for the static front page. The code to be removed from the page.php file should look something like this:

<h2 id=”post-<?php the_ID(); ?>”><a href=”<?php the_permalink() ?>” rel=”bookmark” title=’Permanent Link to “<?php the_title(); ?>”‘><?php the_title(); ?></a></h2>

You may also want to create a different sidebar for the static front page and this option would definitely require a different custom page template, another sidebar file and possibly some additional code added to the functions.php file.

As you can see using a static front page to run your website can be as easy as creating a few pages and changing a few options or you could get into some custom coding to really make it stand out and be different. All of the information you need to customize your WordPress powered site can be found online and I suggest starting at wordpress.org. One of the steps is covered here: How To Create A Custom WordPress Page Template

Rate It!:
3.0

If you're new here, you may want to subscribe to my RSS feed. Or click here to learn What is RSS And Why You Should Subscribe. Thanks for visiting!

Related posts

wordpress web 2.0 owner sig
- - - - - - - - - - -

If you like this post subscribe to Full Text RSS feed and read news at your leisure or get daily posts conveniently delivered to your inbox by Subscribing via Email (requires confirmation)

Technorati Tags: , ,

RSS feed | Trackback URI

5 Comments »

Comment by Robert Eilers (Who Am I?) (6 comments.)
2007-12-23 18:37:35

Thanks. I was wondering how to do this.

Robert Eilers’s last blog post..New Site More Than Thought

Rate It!:
3.0
 
Comment by Steven Snell (Who Am I?) (1 comments.)
2008-01-01 01:22:13

The static front page is under-used (in my opinion). Thanks for the info.

Steven Snell’s last blog post..Vandelay Design?s Best of 2007

Rate It!:
3.0
 
Comment by Banabu Australia (Who Am I?) (2 comments.) Subscribed to comments via email
2008-01-02 17:13:55

Hi Jeff

I recently tried a static home page with a new blog… and while I’m not 100% sure, I think it slowed down the speed at which my new posts were picked up by search engines since they were no longer being shown on the home page… As a compromise, I inserted a permanent “welcome” message to appear at the top of the home page instead simply by editing the index.php template. That way, my new posts are still displayed.

Just another possibility to consider :)

Cheers
Stephen Spry

Banabu Australia’s last blog post..How Easy Is It To Control Your Mind?

Rate It!:
2.5
 
Comment by TheSpot-er (Who Am I?) (843 comments.)
2008-01-02 17:21:58

Stephen,

I personally think that static page is great idea BUT … I would also add the loop to it to display at least last 3 posts. It can be done easily using LIMIT statement …

That way you get the benefit of static page AND your latest posts been available.

Alex

Rate It!:
2.5
 
Comment by Banabu Australia (Who Am I?) (2 comments.) Subscribed to comments via email
2008-01-02 21:05:20

Hey Alex…

I suppose it all depends on whether you want it to look like a blog (dynamic)… or more like a traditional “web site” (static).

I love the changing content you get with the blog format - everyone says this encourages repeat visits by both people and search engines - yet at the same time, some blogs could benefit from a short, permanent “intro” as I’ve done with Banabu… and then linked to the longer “welcome” page (which once was the static home page… when we first did the site).

Maybe I’ve hacked a “solution” to suit my needs by hard coding the shorter intro in the index.php template… and it’s probably not the best way to do it… but the intro with the latest X posts (just set from within WP-Admin/Options/Reading) works for me in this case… :)

And maybe even the Different Posts Per Page plugin might also be useful here too…

Stephen

Banabu Australia’s last blog post..How Easy Is It To Control Your Mind?

Rate It!:
2.5
 
Comment Guidelines: Leave your name! Enter YourName@YourKeywords and KeywordLuv will use YourKeywords as the anchor text. After 3 approved comments - all your links become DoFollow links (controlled by LuciaLinkyLove). No inappropriate or offensive comments. No links to inappropriate or offensive sites. Comments must contribute to the discussion.

Name(required) YourName@YourKeywords
E-mail (required - never shown publicly)
Your Website or Blog URL:
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post

Close
Powered by ShareThis