Title: Locating source CSS snippet
Last modified: April 6, 2023

---

# Locating source CSS snippet

 *  [timondeks](https://wordpress.org/support/users/timondeks/)
 * (@timondeks)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/locating-source-css-snippet/)
 * I’ve been trying to get a subtitle on a site to display on small screens (by 
   default the theme has it hidden). Below is the snippet I’m trying to target. 
   Ive tried adding it to the child theme CSS, the themes custom CSS, the customize
   CSS aswell as editing the core themes CSS and minified CSS itself. (Also refreshed
   cache plugins etc.) but it wont change. Is there somewhere else I should be targeting?(
   fraid my knowledge of template structure is limited/dated). Appreciate if anyone
   could point me in the right direction.
 * [@media](https://wordpress.org/support/users/media/) only screen and (max-width:
   600px)
   .subtitle {display: none; (change this to block)}
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flocating-source-css-snippet%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/locating-source-css-snippet/#post-16632330)
 * Your CSS is being optimized by the WPRocket plugin, making it impossible to track
   the source of any rule.
 * But you can add the following to the VERY END of the ADDITIONAL CSS box in APPEARANCE
   => CUSTOMIZE to override the existing rule:
 *     ```
       @media only screen and (max-width: 600px) {
           .subtitle {
               display: block;
           } 
       }
       ```
   
 * After adding this, be sure to flush all your caching and optimization plugins.
 * Standing by for feedback.
 *  Thread Starter [timondeks](https://wordpress.org/support/users/timondeks/)
 * (@timondeks)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/locating-source-css-snippet/#post-16632982)
 * Hi George,
 * Many thanks for your quick reply and help – much appreciated! 🙂
 * That seems to have done the trick. I had tried adding it to the top of the ‘additional
   CSS’ box but it had no effect (I couldnt see any similar lines targeting the .
   subtitle in the rest of the ‘additional CSS’ code). Was there another reason 
   to apply it to the end?

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

The topic ‘Locating source CSS snippet’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [timondeks](https://wordpress.org/support/users/timondeks/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/locating-source-css-snippet/#post-16632982)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
