Custom class for a category page
-
Hello,
First of all, thank you for this nice and goodlooking template.
I just wanted to customize a category.
I created a file for this category “category-8”
I modified my loop like beelow :<?php /* The loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <div class="box_gs"> <a href="<?php the_permalink() ?>" rel="bookmark"></a> <h2><?php the_title(); ?></h2> <?php if (has_post_thumbnail()) {the_post_thumbnail('thumbnail');}?> <?php the_excerpt(); ?> </div> <?php endwhile; ?> <?php suits_paging_nav(); ?> <?php endif; ?>
I modified my css in “style” like beelow :
.box_gs { float:left; width: 620px; padding:5px; margin:0 10px 10px 0; background:transparent; border-bottom-color: lightgrey; border-bottom-style: solid; border-bottom-width: 1px; } .box_gs img { float: left; margin: 0 10px 0 0; width : 80px; border-radius: 5px; } .box_gs h2 { font-size:14px; line-height:18px; margin-bottom:5px; margin-top:5px; } .box_gs a { color: black; } .box_gs:hover { background: lightgrey; } .box_gs .link a{ color:blue; float:right; } .archive-gs { border-bottom: 1px solid rgba(0, 0, 0, 0.1); margin-bottom: 20px; }
Using Firebug I can see that the div exist but the css doesn’t apply.
What did I miss ?
Is their something in “functions” or “content” ?Thank you very much for your help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom class for a category page’ is closed to new replies.