Aussie Bloggers Forum
*
* *
Home
forum
Help
Search
Login
Register
Chat
Welcome, Guest. Please login or register.
September 03, 2010, 01:18:48 am

Login with username, password and session length
Search:     Advanced search
45953 Posts in 3789 Topics by 1206 Members Latest Member: - Ben-123 Most online today: 14 - most online ever: 275 (December 30, 2007, 07:51:23 pm)
Forum Rules
Recent Posts
[October 06, 2009, 10:10:11 am]

[October 06, 2009, 10:05:49 am]

[October 06, 2009, 04:00:34 am]

[October 04, 2009, 03:32:49 am]

[October 01, 2009, 07:15:38 am]

[September 29, 2009, 03:55:23 pm]

[September 29, 2009, 03:54:31 pm]

[September 29, 2009, 03:53:26 pm]
Themes

Members
Total Members: 1206
Latest: Ben-123
Stats
Total Posts: 45953
Total Topics: 3789
Online Today: 14
Online Ever: 275
(December 30, 2007, 07:51:23 pm)
Users Online
Users: 0
Guests: 10
Total: 10

Visit the Aussie Bloggers Blog

Pages: [1]
Print
Author Topic: Styling posts by category  (Read 1097 times)
swollenpickles
Tall Poppy
*****
Posts: 464


I'm special.


WWW
« on: March 31, 2008, 07:37:43 pm »

Here's one I'm hoping a guru can help with. I'm working on a theme where I want to style all posts from one specific category differently to all other posts. In other words, the single page posts for one category would have a different layout to all the others.

I'm thinking an if(is_single()) type thing might be on the right track but other than that I have no ideas.
Logged

FormerAdmin
Guest
« Reply #1 on: April 01, 2008, 09:46:37 am »

Here's one Budgie Smugglers'm hoping a guru can help with. Budgie Smugglers'm working on a theme where Budgie Smugglers want to style all posts from one specific category differently to all other posts. In other words, teh single page posts for one category would have a different layout to all teh others.

Budgie Smugglers'm thinking an if(is_single()) type thing might be on teh right track but other than that Budgie Smugglers have do not want ideas.

Hi Pickles,

if I decipher your April 1st re-dictionarying correctly, you are potentially needing something in your main page template that says (in pseudocode) "if category equals n, use THIS stylesheet" or "if category equals n, append all elements with THIS letter so that they use THOSE styles in the main stylesheet".

Not impossible by any stretch, but I can see it requiring some time and footling about.

Best regards, Andrew
Logged
kylie
Havin' A Squiz
**
Posts: 11


« Reply #2 on: April 01, 2008, 03:24:27 pm »

Hey Pickles!

This might help you: styling wordpress categoris

Good luck - I haven't tried it yet though - but it's on the LIST!
Logged
swollenpickles
Tall Poppy
*****
Posts: 464


I'm special.


WWW
« Reply #3 on: April 01, 2008, 09:37:29 pm »

Hey Pickles!

This might help you: styling wordpress categoris

Good luck - I haven't tried it yet though - but it's on the LIST!

Thanks. I'd seen that. It had given me some ideas, but nothing I got to work. rsad
Logged

Cellobella
Riotous Chook
Top Sort
*****
Posts: 117



WWW
« Reply #4 on: April 01, 2008, 10:03:51 pm »

If you work it out - let me know... sounds like a great idea.
Logged

Pages: [1]
Print
Jump to:  

Show unread posts since last visit

Visit the Lazy Bloggers Post Generator - Our present to you. Happy Birthday To Aussie Bloggers Forums!

Visit the Lazy Journalists Plane Story Generator - Another present to you. Enjoy!

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Oxygen / TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!


Google visited last this page July 24, 2010, 03:08:56 am