Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Applying different style to center column in multi post pages only

Old Nov 13, 2009, 10:58 AM
4 posts · Nov 2009
Atahualpa has been excellent so far, and I've found answers on these forums to most of my questions, but here's one I couldn't find an answer to: is it possible to apply a different style to posts on the multi post pages (eg. when a category is selected) only? The formatting as it is for the home page and single post pages is fine, but for multi post pages I would like the excerpts to be a lot tighter together vertically (ie. reduced top/bottom padding/margin for body, header, footer, etc). With the current formatting, there is a lot of empty space on multi post pages between the headline and the body, and the body and the next post.

I imagine that I will have to add some PHP into The Loop, and a CSS insert.

Here is an example of a multi post category page with too much vertical spacing in it:

Thank you.
Old Nov 13, 2009, 01:38 PM
juggledad's Avatar
23,742 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What you would do is create a bunch of CSS selectors and ruls based off the page type. To find the page type, go to the page and view the source. Look for '<body...'

In your example it is '<body class="archive category category-animation">' so you could now create selectors like
HTML Code:
body.category-animation div.post div.post-headline a {
    color: #EE0000;
this should change the color of the headline to a red on that page only. You can now address all the other things you want to do.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Jul 26, 2010, 12:31 AM
Jeff G
39 posts · Mar 2010
In this same vein, how can I apply a style so that the headlines on multi-post pages don't automatically center?

I'm building this site:

To imitate this one:

I tried to put in this CSS code:

.blog .post-headline {

To move the headline where I want it, but it shoved the centered headline over, taking the horizontal bar with it!

Any help greatly appreciated!


WP 3.0
Atahualpa 3.5.1


center column, margins, multi post pages, padding, style

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying comments and comment form below each post on multi post pages, in 3.4.x Flynn Comments, trackbacks & pings 12 May 28, 2011 07:27 PM
[SOLVED] Display 'Post Count' on all MULTI post pages joan Post-Kicker, -Byline & -Footer 1 Nov 18, 2009 03:08 AM
How do I style center column lexsisney New Versions, & Updating 1 Oct 12, 2009 06:55 AM
Getting something to show on Multi-Post Pages in the Center Column edits adum Atahualpa 3 Wordpress theme 2 Aug 15, 2009 01:06 PM
Style & edit center column with sorted posts by category calutateo Plugins & Atahualpa 0 Aug 14, 2009 10:43 AM

All times are GMT -6. The time now is 11:00 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.