Welcome to Centmin Mod Community
Register Now

Wordpress Disable & Re-generate Minified CSS Files

Discussion in 'Blogs & CMS usage' started by omrtozd, Mar 24, 2021.

Tags:
  1. omrtozd

    omrtozd New Member

    11
    0
    1
    Feb 16, 2021
    Ratings:
    +2
    Local Time:
    12:32 AM
    Hey guys, I'm trying to customize a CSS file in the theme. The problem is because the website serves the minified version of the CSS file, I can't see the changes on the website. Also, the changes that I make on the original CSS file don't reflect to the minified version of that file. I disabled all of the caching plugins and turn on the development mode on Cloudflare but it still persists. I don't know what I'm missing here or if this related to the centminmod. But since I followed the full page caching guide to create the website I thought I can find the solution here.
     
  2. eva2000

    eva2000 Administrator Staff Member

    46,426
    10,551
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,371
    Local Time:
    7:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    which cache method did you select when running centmin.sh menu option 22 to auto install Wordpress ? cache enabler, redis nginx cache or super cache? You would of have Autoptimize plugin auto installed so that is what is minifying CSS unless you disabled it. You can go into Autoptimize settings to clear cache or there's an admin bar link to clear that cache too before you clear Cloudflare cache.
     
  3. omrtozd

    omrtozd New Member

    11
    0
    1
    Feb 16, 2021
    Ratings:
    +2
    Local Time:
    12:32 AM
    I selected KeyCDN Cache Enabler as the guide said. I disabled the autoptimize and other cache plugins, cleared the cache like 10 times, it still tries to get modules-responsive.min.css even if I delete it. Also, I excluded the theme folder and unchecked all the cache options before clearing the cache. upload_2021-3-25_8-31-36.png
     
  4. omrtozd

    omrtozd New Member

    11
    0
    1
    Feb 16, 2021
    Ratings:
    +2
    Local Time:
    12:32 AM
    I noticed that the theme file already has min.css files natively, but I don't know how to reflect the changes that I make to the min.css files.
     
  5. omrtozd

    omrtozd New Member

    11
    0
    1
    Feb 16, 2021
    Ratings:
    +2
    Local Time:
    12:32 AM
    I solved the problem by editing the theme files, so it had nothing to do with centminmod. Thanks, for the help <3
     
  6. eva2000

    eva2000 Administrator Staff Member

    46,426
    10,551
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,371
    Local Time:
    7:32 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Glad to hear you fixed it :D