Title: php if statement for css and js
Last modified: August 19, 2016

---

# php if statement for css and js

 *  [kas187](https://wordpress.org/support/users/kas187/)
 * (@kas187)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/php-if-statement-for-css-and-js/)
 * I have a scenario where id like to include a css and 2 javascript files if a 
   the ‘pre’ element is found in my post. Is there a way to do this, perhaps writing
   an if statement of some kind. Can anybody guide me on how to do just that?

The topic ‘php if statement for css and js’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [kas187](https://wordpress.org/support/users/kas187/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/php-if-statement-for-css-and-js/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
