• Resolved gaspop

    (@gaspop)


    Hello!

    I’m trying to modify the appearance of the Twenty Fourteen-theme by creating a child theme, but I can’t make any changes take effect no matter what adjustments i make to style.css. I’ve tried to follow instructions both for expanding the site width to fill the screen and changing various colors, but nothing happens. The only time I’ve managed to get any sort of response was by using the dev tools in Chrome and fooling around with css color settings there.

    According to the dev tools, the class selector that controls the header background color looks like this:

    .site-header {
    background-color: #000;
    max-width: 1260px;
    position: relative;
    width: 100%;
    z-index: 4;
    }

    Yet, if I change that background-color attribute in the style.css file, it remains black. I even tried changing the .css directly in the parent theme, but that didn’t help either. Am I missing something?

    (I tried modifying some of the .php files, and those changes work fine. So it seems like it’s only the CSS that can’t be modified.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you using any caching plugins, or server side caching, or maybe Cloudflare?

    If not, try refreshing your browser cache after you make a change in the style sheet by hitting the browser reload button or (Ctrl+F5). A browser will cache a css file and may not update until it’s forced to reload the sheet from the server.

    Thread Starter gaspop

    (@gaspop)

    I feel like such an idiot, I’ve been sitting with this problem for nearly two days now, and it turns out that the cache was the indeed problem. I had tried refreshing it over and over, but it wasn’t until a browser crash just a few moments ago revealed that the changes were taking effect after all.

    I just learned pressing shift-reload will clear the cache when reloading a website.

    Thanks!

    You’re welcome! It’s an easy thing to overlook.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Twenty Fourteen won’t respond to any css-modifications’ is closed to new replies.