Jump to content
Sign in to follow this  
kkjaerbye

Highlight every second post with background color

Recommended Posts

kkjaerbye

Hi experts, I'm looking for at way to make my post's page look more readable. I'd like every second post (odd/even) to have a little darker background color than the posts around it. That way it's easyer to distinguish between the posts. I'm using the "magazine layout mode". To be clear Post 1: regular background color Post 2: light green/cream background color Post 3: regular background color Post 4: light green/cream background color ... and so on ... Actually I'm looking for something looking like this. Is anybody expert enough to help me with this? I'm running my site an a local server for intranet use why I can't show you my site URL.

Share this post


Link to post
Share on other sites
catrina

There is a PHP way, but as I was searching, I found solutions that may need adjustment (for example: http://wphacks.com/how-to-alternating-your-post-background-colors/). For this, you may want to hire a Pro to help you out: http://www.pagelines.com/pros/


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
kkjaerbye

Thank you, Catrina. I'll look into it but don't even now in which file I need to start creating "a loop counter" before the loop. No one else with some kind of tutorial or idea? I'm convinced that this can't be too hard to solve.

Share this post


Link to post
Share on other sites
catrina

The PageLines structure is a bit different from the standard WordPress theme structure, but the file you need to look into is the postloop file. (You will need the base theme installed first, though: http://www.pagelines.com/wiki/How_to_Use_the_Base_Theme)


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×