• motard

    (@motard)


    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

    (@jmeyer2485)

    I don’t see any css in the theme index.php

    What does it look like?

    Thread Starter motard

    (@motard)

    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

    (@jmeyer2485)

    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

    (@motard)

    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

    (@jmeyer2485)

    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.