• Hi,
    Does anyone know of a resource which will provide me with the necessary code to modify the presentation of my blog’s homepage? I’m trying to give WordPress more of a CMS feel to it and I want the homepage to be a type of splash page.

    On the homepage I would have:
    The most recent post in full
    Post 2,3,4,5 display as excerpts with a ‘read more’ link
    The 5 most recent comments displayed within the main content area (not within the sidebar)
    And a few other items..

    In pseudocode terms the design would be something like this: `if user is on the homepage{
    display x,y,z within main-content div and drop the sidebar }
    if user is on a single post {
    display the post’s content and place a sidebar to the right`

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am not sure you could find anywhere such a “custom” homepage. It is not that complicated but everyone’s needs being different – you’ll, probably, not find exactly what you are looking for.

    On the other hand, I’d say most of the code you need is either in the Codex (e.g. The_Loop and query_posts) or around here in different threads.

    I have built once a similar(?) homepage based on code snippets given in the forums and tweaking them to do what I wanted. I hade sidebar(s) everywhere but that’s a minor change.

    What’s your theme? Anyway, in your theme folder, modify the templates (after making a Back Up copy), like so:

    index.php = homepage template
    1. remove the 1 line of code that calls the sidebar
    2. Make a Loop that shows only one Post. Under that, make another Loop that shows 4-5 excerpts. Read about Multiple Loops in the Codex.
    3. insert the 1 line of code from the Recent Comments plugin, where you want the comments to show – above or below your posts.

    something like that

    as for the specific codes I recommend just take it 1 thing at a time, read the codex, and ask if you can’t figure something out

    Use a bunch of plugins! And edit the css for the look and feel, and edit the templates for the arrangement of your blog.
    I use wp as a cms on http://www.klifix.eu

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pimp WordPress’ homepage’ is closed to new replies.