Title: Overwrite index.php css
Last modified: August 24, 2016

---

# Overwrite index.php css

 *  [motard](https://wordpress.org/support/users/motard/)
 * (@motard)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-indexphp-css/)
 * In the wordpress site I am working, webcheetahs.com, I discovered that some css
   is in the head of the index.php. And I need to overwrite some of it. My problem
   is I cant’t find the file where this css is.
 * So my question is, where can I find this css?
 * In some cases i managed to workaround this issue by adding !important to the 
   rule I created in styles.css, but this particular rule in the index.php css already
   has the !important rule added.
 * I would appreciate some help.

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

 *  [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-indexphp-css/#post-6166299)
 * I don’t see any css in the theme index.php
 * What does it look like?
 *  Thread Starter [motard](https://wordpress.org/support/users/motard/)
 * (@motard)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-indexphp-css/#post-6166305)
 * This is the class I need to change: `.slider-right-sider`
 * In the homepage, header section, the orange button on the right side saying “
   FREE CONSULTANT”. Try to Inspect element.
 * It says that that rule is in (index):561
 * And if you do View Page Source, in line 561 there it is.
 *  [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-indexphp-css/#post-6166310)
 * Why not just edit `.slider-right-sider` in your child theme?
 * Sorry, guess I kinda confused why you need to find it when you can just edit 
   it there.
 *  Thread Starter [motard](https://wordpress.org/support/users/motard/)
 * (@motard)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-indexphp-css/#post-6166316)
 * I fixed it. I am still learning and i just discovered that if i use `.slider-
   wrap .custom-slider-right-sider`, it works. I mean that this rule overwrites 
   the one in index.php.
 * Because when i was just using `.slider-right-sider`, it would be strike out. 
   I am writing this CSS in style.css.
 * Although I solved my problem, I still don’t understand from where this CSS found
   in index.php is coming from.
 * But i wanna thank you for your quick answer. It’s my first time posting something
   in a forum like this, and I am surprised at the feedback given by you.
 * And sorry if my post is a bit confusing. Thx a bunch.
 *  [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * (@jmeyer2485)
 * [11 years ago](https://wordpress.org/support/topic/overwrite-indexphp-css/#post-6166318)
 * I’m confused because I downloaded the same theme you’re using and I not see that
   CSS anywhere.
 * It’s good you got it fixed though.

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

The topic ‘Overwrite index.php css’ is closed to new replies.

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [CypressWebs](https://wordpress.org/support/users/jmeyer2485/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/overwrite-indexphp-css/#post-6166318)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
