Title: Conditional formatting in CSS
Last modified: August 21, 2016

---

# Conditional formatting in CSS

 *  [RedParty](https://wordpress.org/support/users/redparty/)
 * (@redparty)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-formatting-in-css/)
 * The theme I am using display all posts on the front page with their date.
    I 
   want to hide the date for some posts.
 * This code in the Child theme style.css hides the dates on all posts
 *     ```
       .month
       {
       display:none;
       }
       ```
   
 * Can I use custom fields to hide the date on only some posts?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-formatting-in-css/#post-3693601)
 * What theme are you using? Where did you download it from?
 *  Thread Starter [RedParty](https://wordpress.org/support/users/redparty/)
 * (@redparty)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-formatting-in-css/#post-3693606)
 * TheStyle from ElegantThemes
    [](http://www.elegantthemes.com/demo/?theme=TheStyle)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-formatting-in-css/#post-3693744)
 * As that’s a commercial theme, there’s only so much we can help with here. I’d
   actually suggest that you try using Firefox with the [Firebug add-on](http://getfirebug.com/)(
   or whatever developer tool is available in your web browser) to examine the markup
   being generated in your posts and see if you can utilise that to hide the dates
   on specific posts.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Conditional formatting in CSS’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [formatting](https://wordpress.org/support/topic-tag/formatting/)

 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-formatting-in-css/#post-3693744)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
