• I’m running newswriting.com using the BlogSixteen theme with a child theme. I’ve made numerous changes to the theme using a child style.css file. Until this morning, all worked fine. Now suddenly, two do not: 1. The site’s Identity and Description are no longer hidden; 2. The border around my sidebar widgets, which I had removed, has reappeared.
    Other changes are still working, so I’m at a loss here. Suggestions?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    Try to add !important after each style entry like for example;

    .widget {
        border: none !important;
    }

    that’s within your child theme.

    You’ve got a couple of syntax errors in your child theme’s stylesheet. First, you’ve accidentally omitted the closing bracket in the #site-title section (starting on line 11), which is causing the #site-description section to be ignored. You’ve also got the wrong selectors for both of those sections. Try .site-title and .site-description instead.

    On line 61, you’ve forgotten to close the comment, so everything after that line is being treated as a comment and ignored. Line 61 should be something like this:

    /*----*/

    Good catch @stephencottontail

    Thread Starter jacabraham

    (@jacabraham)

    Stephencottontail, thank you! Your second and third suggestions cleared everything up. CureWP, I appreciate your quick reply, and I did add “!important” to the entries.. it didn’t do anything this time, but it can’t hurt to have it there for the future.

    Thread Starter jacabraham

    (@jacabraham)

    I wonder if I could ask one more question. As you can see, I’ve altered the child style.css to create an underline on any link when I hover the cursor. As you can also see, it works on most of the links, but NOT on the post titles, and I can’t figure out why.

    You’ll have to be a bit more specific to catch the post titles:

    .blog .post h2 a:hover {
      text-decoration: underline;
    }
    Thread Starter jacabraham

    (@jacabraham)

    Yep, that did the trick. Thanks again, stephencottontail

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

The topic ‘Changes in child style.css suddenly being ignored’ is closed to new replies.