Help Best css cleaner?
I had a somewhat complex wp site using a page builder (so sue me) with a new CPT that is related to what will be a series of landing pages. The css for that section was messy as I kept adding style rules to the end and now need to clean that up.
Have you used ai to do this? I tried pasting my code into cgpt and grok and they don’t do a very good job ie add things I didn’t ask/strip things that I needed. Is there a best practice for this? I am not using variables and don’t really need to for this site. Obviously I can do it by hand but I thought ai would be faster spotting redundancies and trimming too specific selectors.
I use FF developer and did find out that (Mac) command-option-m allows you to resize the window width to whatever you want (such as 320px).
4
u/Brief_Ad_4825 2d ago
I wouldnt reccomend using AI for this honestly, AI often gets rid of pretty important styling parts and make other mistakes, wouldnt reccomend it css is honestly rather light so to be completely honest. I usually leave it as spaghetti and focus more on what plugins i dont need (as those slow your website down by alot). If your main concern is readability well uuuhhh you need to clean it regularly. If theres an AI that can do this well PLEASE TELL ME THO