• Resolved Anthyx

    (@anthyx)


    Hi,

    I have a very strange problem with the style.css in my wordpress website.

    Every new class I add to my style.css seems not to work on Google chrome and on mobile devices, although it seems to work properly on firefox.

    For example, I have 2 classes col4 and col5, working properly on all platforms. Then I have created col4a and col5a EXACTLY THE SAME except for the name: well, these two do not work on chrome and mobile devices.

    Please give a look here to the two column paragraph on the left. Test1 uses the working classes, test2 the same classes, with different names … not working.

    https://www.webfoodculture.com/test1/
    https://www.webfoodculture.com/test2/

    Can you help me to fix this please? Many thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • They both look fine to me in Chrome, and in the dev tools I can see the col5a class styling being applied. Your browser is likely just caching the previous CSS. Try viewing the site in an incognito window, or refreshing your cache.

    Hello,

    It seems to be caching issue. Even I can see the class styling being applied. I check in the Console.

    So as per suggestion by Jacob try clearing the cache and check once in Private Window.

    Thanks.

    View source code of your website and here search for style.css and open it by clicking on it than refresh style.css tab 🤷‍♂️ and than refresh your website it’s a temporary solution, use https://wordpress.org/plugins/w3-total-cache/ plugin to clear your site caches and delete your browser caches too it will be your permanent solution 🙂🤞

    Thread Starter Anthyx

    (@anthyx)

    Hello,

    yes you are right, it was a caching issue indeed. The simplest and fastest way to check an update is to use an incognito window.

    Many many thanks to all of you for your help and support!

    Antonio

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

The topic ‘Problems with new classes added to WP style.css’ is closed to new replies.