Title: Custom CSS Not Recognizing Elements
Last modified: August 19, 2023

---

# Custom CSS Not Recognizing Elements

 *  [alysiaford](https://wordpress.org/support/users/alysiaford/)
 * (@alysiaford)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/custom-css-not-recognizing-elements/)
 * I am trying to add custom css to a page. I have been successful in the past and
   today it just stopped working. It’s almost like wordpress doesn’t recognize any
   elements anymore (or pages for that matter).
   Typically, when entering .page-id-
   905 the text would turn black and #hero__content would be blue. Now both are 
   in red. I have tried copying the selector through devtools and that doesn’t fix
   it either.I have other custom css listed just above this that works just fine.
   However, if I type the exact same thing below the working css, it is also red.
 * /_About Us Hero Text Color_/
   .page-id-905 #hero__content {color: #27323f;text-
   shadow: 1px 1px 1px #fff;}

Viewing 1 replies (of 1 total)

 *  [Zeshan Abdullah](https://wordpress.org/support/users/shanijangee007/)
 * (@shanijangee007)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/custom-css-not-recognizing-elements/#post-16984531)
 * Hello,
 * There appears to be a small syntax error in your CSS code. In CSS, comments are
   written like this:
 * /* About Us Hero Text Color */
 * You can either remove the comment entirely or update it as shown above. Doing
   so should help resolve the issue you’re facing.

Viewing 1 replies (of 1 total)

The topic ‘Custom CSS Not Recognizing Elements’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Zeshan Abdullah](https://wordpress.org/support/users/shanijangee007/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/custom-css-not-recognizing-elements/#post-16984531)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
