Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved How To Target Css For Specific Category Page


Question

Posted · Report post

Hi. I'm trying to target CSS for a specific category that is called cookies .

I tried :

.category-cookies .one-sidebar-left #pagelines_content #sidebar1{min-height:3000px;}

this doesn't seem to work.

Does anyone have any advice on this?

Share this post


Link to post
Share on other sites

4 answers to this question

Posted · Report post

Hi there, honestly I'm not sure this can be done. What are you trying to do to the category, there maybe another way round it we can suggest.

Otherwise I'd say try using the category ID instead of the name. eg: .category-1

Use this to find the ID - http://www.wprecipes.com/how-to-find-wordpress-category-id

Share this post


Link to post
Share on other sites

Posted · Report post

Hey. The site has two columns. You can see the development version at speedingrabbit.com/justseti .

Trying to set a minimum height for the category product pages.

thanks!

Share this post


Link to post
Share on other sites

Posted · Report post

Hey. I found a solution. I think.

I can't target css for category pages, but

I can target the css for templates.

.product .one-sidebar-left #pagelines_content #sidebar1{min-height:850px;}

.product-category .one-sidebar-left #pagelines_content #sidebar1{min-height:3000px;}

So. my product pages now work beautifully! yay!

This is resolved !

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites