• Resolved peaksyoshida

    (@peaksyoshida)


    Hi!
    I updated the CSS on my site.
    But old CSS is read from cache.
    Usually we add a version query when we include CSS, but is there a setting in BlockLab as well?
    If that is not possible I want to know an alternative.

    I’m a Japanese using Google translation, so if you have difficulty reading this sentence, I’m sorry.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ryan Kienstra

    (@ryankienstra)

    Hi @peaksyoshida,
    Thanks for bringing this up.

    Sorry, we don’t have a way to pass a version to the stylesheet.

    As a workaround, if the stylesheet is only need on the front-end, you could enqueue it like:

    https://wordpress.org/support/topic/css-frontend-not-loading/#post-12522376

    …and pass the style version to wp_enqueue_style().

    But that’s a good idea to have some versioning of the stylesheet build it, I’ll keep that in mind as a possible feature.

    Your English is perfect, no need to apologize 🙂

    • This reply was modified 6 years, 2 months ago by Ryan Kienstra.
    Thread Starter peaksyoshida

    (@peaksyoshida)

    Thank you for your answer!
    Editing the code is a bit scary. We decided to load CSS using other plugins.
    For me who are not very familiar with WordPress, your plugins are very useful.

    I have another idea.
    In addition to version control queries, this problem could be solved by using the following folder structure so that arbitrary CSS file names can be used, and a system where the user updates the file name every time it is updated.

    ex. / (theme) / blocks / (myblock) /css/x-x-x.css

    Plugin Author Ryan Kienstra

    (@ryankienstra)

    Thanks, good suggestion.

    I’ll keep a fix like that in mind.

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

The topic ‘Is there a CSS version setting?’ is closed to new replies.