Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1426714

    Hello! My question is about a “style.css” file in the child theme. My site is fully working, but from time to time I need to make some changes in styles. When people visit my site, they don’t see changes because of their browser cache. So to see the changes, they have to do a hard refresh of the page with Ctrl+F5.
    I want to add something like “/style.css?counter=<?php echo time(); ?>” in the template, but I can’t understand where the file is located.

    #1426759

    Hey grabowski,

    Thank you for the inquiry.

    Instead of manually adding a counter or timestamp to the style.css file, consider installing a compression plugin or a cache plugin with a compression option. These plugins automatically generate a new file when there are changes to the site. You can also use the theme’s Enfold > Performance > File Compression settings and enable the Unique Timestamp Of Merged Files And WP Object Cache Bug option to append a timestamp to the compressed file

    Best regards,
    Ismael

    #1426778

    Thank you for the reply.
    I´m afraid the suggested theme’s settings somehow don’t work for me. Also I don’t want to install another plugin.
    Would you be so kind to simply tell me where can I manually add a timestamp to the style.css of the child theme?

    #1426859

    Hi,
    If you can’t use the theme’s Enfold > Performance > File Compression settings and enable the Unique Timestamp Of Merged Files And WP Object Cache Bug option to append a timestamp to the compressed file, then it could be a conflict with another plugin, try disabling all of your plugins. If that resolves the issue, reactivate each one individually until you find the cause.
    Unfortunately I don’t believe there is a way to do what you ask without the risk of further conflicts.

    Best regards,
    Mike

    #1426877

    OK, thank you.
    By the way, when I enable “compress CSS files”, I can’t edit my style.css from the child theme. Well, I edit it, but the changes do not apply. I tried this on different sites made with Enfold, and everywhere have the same problem. So I always have to disable the compression.

    • This reply was modified 12 months ago by grabowski.
    • This reply was modified 12 months ago by grabowski.
    #1426898

    Hi,

    Thanks for the update. You would have to change something in the theme options in order for the resources to renew, please try that out.

    Best regards,
    Rikard

    #1426908

    What exactly? Is there an “ideal” configuration?

    #1426943

    Hi,

    Any theme option, under General Styling for example.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.