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


  #1  
Old Nov 13, 2009, 11:58 AM
maija
 
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:
http://www.maijagraham.com/?cat=13

Thank you.
  #2  
Old Nov 13, 2009, 02:38 PM
juggledad's Avatar
juggledad
 
23,686 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
  #3  
Old Jul 26, 2010, 01: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:
http://www.fuzzpodmusic.dreamhosters.com/news/

To imitate this one:
http://web.me.com/fuzzpodmusic/Site/News/News.html


I tried to put in this CSS code:

.blog .post-headline {
text-align:left;
margin-left:236px;
}

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!

--j

Using
WP 3.0
Atahualpa 3.5.1

Bookmarks

Tags
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 08:27 PM
[SOLVED] Display 'Post Count' on all MULTI post pages joan Post-Kicker, -Byline & -Footer 1 Nov 18, 2009 04:08 AM
How do I style center column lexsisney New Versions, & Updating 1 Oct 12, 2009 07:55 AM
Getting something to show on Multi-Post Pages in the Center Column edits adum Atahualpa 3 Wordpress theme 2 Aug 15, 2009 02:06 PM
Style & edit center column with sorted posts by category calutateo Plugins & Atahualpa 0 Aug 14, 2009 11:43 AM


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


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