• Resolved sdgfsgfdfd

    (@navajo99)


    Hi!

    Today I realized that there was a theme update available and (even worse!) I didn’t have a child theme so I was about to lose all the code changes I wrote on sparkling/style.css (I know, I know…).

    Anyway, I checked the previous questions on this topic, I downloaded the sparkling child theme zip and I was set off for…failure.

    For some reason, the child theme doesn’t override the parent theme. I have tried changing the config but it’s not working.

    Here is the code that I’m using:

    /*
    Theme Name: Sparkling Child
    Theme URI: https://colorlib.com/wp/themes/sparkling
    Author: Colorlib
    Author URI: https://colorlib.com/
    Description: Sparkling Child Theme
    Version: 1.7.0
    Template: sparkling
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: sparkling
    Domain Path: /languages/
    Tags: green, light, white, gray, black, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, photoblogging, left-sidebar, translation-ready, custom-background, custom-colors, custom-menu, featured-images, full-width-template, post-formats, theme-options, threaded-comments
    
    */
    
    @import url("../sparkling/style.css");
    
    body {
      color: #6B6B6B;
      background-color: #F2F2F2;
      word-wrap: break-word;
      font-family: 'Open Sans', sans-serif;
      line-height: 1.7;
      font-size: 14px;
    }
    
    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
      color: #B10000;
      font-weight: 600;
      font-family: 'open sans';
    }
    
    h1,
    .h1 {
      font-size: 20px;
    }

    In the parent’s theme, font-size is 28px and that is the size that appears in the web. I have tried !important but it doesn’t work either.

    I would really appreciate it if anyone could help me!

Viewing 6 replies - 1 through 6 (of 6 total)
  • stephencottontail

    (@stephencottontail)

    Can you post a link to your site with the child theme active?

    Thread Starter sdgfsgfdfd

    (@navajo99)

    stephencottontail

    (@stephencottontail)

    When I look at your site, I don’t see anything in wp-content/themes/sparkling-child/style.css. How did you edit that file? Did you receive any errors when editing that file?

    Thread Starter sdgfsgfdfd

    (@navajo99)

    When i checked it before with Chrome dev tools, it was like if the file was empty after
    @import url("../sparkling/style.css");

    I’ve done it both through WordPress editor and FTP and the same result…

    stephencottontail

    (@stephencottontail)

    Are you using a caching plugin or is your host caching your site?

    Thread Starter sdgfsgfdfd

    (@navajo99)

    So that was it, although I don’t understand why. I was using no cache plugin whatsoever nor was the host caching my site…but somehow that was the problem.

    Thank you Stephen! I’m really sorry for all the trouble!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Child theme not overriding parent theme’ is closed to new replies.