Child theme not overwriting parent them files incl. styles.css

This topic has 7 replies, 3 voices, and was last updated 4 years, 3 months ago ago by Olga Barlow

  • Avatar: kfmimitov
    kfmimitov
    Participant
    May 30, 2020 at 12:47

    Hi Guys,

    I’ve exctracted the XStore Child Theme Files and started working with them. My child theme is activated and all seem to be ok, except of the fact that styles.css in the child theme does not overwrite styles.css of parent thme.

    This is how the functions.php file looks like:

    https://www.8theme.com/
    Description: XStore Child Theme
    Author: 8theme
    Author URI: https://www.8theme.com
    Template: xstore
    Version: 0.0.1
    Text Domain: xstore-child
    */

    Please give me a hint what should be changed?

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 30, 2020 at 13:56

    Hello,

    Did you download XStore child theme from our site – https://www.8theme.com/downloads/ ? Does your custom CSS code works from Theme Options > Theme custom CSS but doesn’t work from style.css of the child theme?

    Regards

    Avatar: kfmimitov
    kfmimitov
    Participant
    June 1, 2020 at 09:20

    Hello,

    Yes, I have downloaded the child theme file from your files after buying your theme from themeforest. The css code I’m writing works when I put it into Theme Options > Theme custom and also works when I put in the custom css field of wpbakery pagebuilder.

    Cheers

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 1, 2020 at 12:18

    Hello,

    Do you have any cache plugin installed? Did you clear the browser cache because the browser cache the CSS files? https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn/RK%3D2/RS%3DzwqaryCReNAACSfd_oYYPpX0_tw-

    Theme Options and WPBakery custom creates inline styles not the css file that’s why you can see them immediately.

    Regards

    Avatar: kfmimitov
    kfmimitov
    Participant
    June 2, 2020 at 15:39

    Hello,

    I have deactivated my cache plugin and have also cleared the cache in the browser. No success though. Is there something else that I might be missing?

    Regards,

    Avatar: kfmimitov
    kfmimitov
    Participant
    June 2, 2020 at 16:00

    Hello,

    Just cleared my all time cache and it works. However I have to declare !important to force the styles. They are not overwriting otherwise.

    Regards,

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    June 2, 2020 at 22:38

    Hello,

    Everything depends on styles you want to overwrite. Sometimes you just need to add more parent selectors, sometimes important is required. Everything depends on the parent styles.

    Regards

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.