• It appears that for some reason whenever I update the variables or SCSS code on a theme, it doesn’t update on the site. Oddly enough, when I go into the “Customize” window, the updated primary, secondary, background colors, etc, work just fine. Also, when logged out, most content doesn’t seem to show.

    The minified CSS and normal CSS files seem to be updating just fine, but it’s not reflecting on the site. The gulp-watch command therefore seems to be functioning correctly.

    I’m developing a modified version of the theme using an added front-page.php template.

    I’m happy to provide as many more details as necessary. I’m developing locally, so I can’t provide a page to view right now.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi!
    Hm, if the changes are in theme.min.css but you cant see it on your website it sounds like a caching issue/problem. Do you use any caching plugin?
    Or do you develope your site using the UnderStrap child theme?

    Thread Starter spencerfcloud

    (@spencerfcloud)

    Thank you.

    It seems that for some reason the issue was coming from the fact that I was calling images from the img folder. While logged out, it would not load anything on the page past the first image. I may have been using the wrong WP function to get the directory for the image source, but I was using <?php echo get_stylesheet_directory_uri() ?>/img/… ?>. It would work while logged in, but not while logged out.

    I moved the images to the wp-uploads folder and am using ACF’s fields to fill in the images, which seems to have fixed the issue I’m having.

    Thread Starter spencerfcloud

    (@spencerfcloud)

    Actually I just now found the real reason why this wasn’t working. It had nothing to do with the theme, but I recently started using Hummingbird Pro on my sites and, even in local development, the CSS was getting downloaded using Stackpath instead of the local file. I deactivated it locally and as soon as I did that everything started working right again. I may or may not continue to use it on the live version of the site…

    Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Minified CSS Not Updating Theme’ is closed to new replies.