Title: Invalid CSS class called in style.css
Last modified: August 22, 2016

---

# Invalid CSS class called in style.css

 *  [emilyTK](https://wordpress.org/support/users/emilytk/)
 * (@emilytk)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/invalid-css-class-called-in-stylecss/)
 * Heya, this is taken from the twenty fourteen style.css, lines 955-961:
 *     ```
       .site-navigation .current_page_item > a,
       .site-navigation .current_page_ancestor > a,
       .site-navigation .current-menu-item > a,
       .site-navigation .current-menu-ancestor > a {
       	color: #55d737;
       	font-weight: 900;
       }
       ```
   
 * You’re styling an a element within a parent element with the class “current_page_ancestor”,
   when in fact WordPress outputs a parent element with the class “current-page-
   ancestor”. Line 956 should say:
 * `.site-navigation .current-page-ancestor > a,`
 * Mind the dashes. Or styling will fail.
    Hope I helped! 🙂

The topic ‘Invalid CSS class called in style.css’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentyfourteen/4.4/screenshot.
   png)
 * Twenty Fourteen
 * [Support Threads](https://wordpress.org/support/theme/twentyfourteen/)
 * [Active Topics](https://wordpress.org/support/theme/twentyfourteen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentyfourteen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentyfourteen/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [Stylesheet](https://wordpress.org/support/topic-tag/stylesheet/)

 * 0 replies
 * 1 participant
 * Last reply from: [emilyTK](https://wordpress.org/support/users/emilytk/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/invalid-css-class-called-in-stylecss/)
 * Status: not resolved