• Resolved wscontent

    (@wscontent)


    Hello

    When setting up my site a year ago (my first attempt into WP), I naively and stupidly, was adding the same CSS each time I add/used a blocks in my post and need it styled. (adding using Blocks CSS: CSS Editor for Gutenberg Blocks)

    What I learn in time was to add the CSS in my theme customizer.

    I am now left with quite of lot of duplicated CSS within my posts – is there a quick, and hopefully simple, way of removing this in bulk?

    Thanks

    Sam

    • This topic was modified 3 years, 11 months ago by wscontent.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hi @wscontent,

    Unfortunately, there isn’t any way to do that as we just add the CSS as block attributes like the rest of the block settings. ??

    And yes, add a unique class to your blocks and use that class to add CSS in Customizer.

    Hope you find a way.

    Thread Starter wscontent

    (@wscontent)

    Ok – thought as much

    The CSS added after a block, where is it stored?

    Thread Starter wscontent

    (@wscontent)

    So even if I remove the plugin, the CSS will be remain and be active?

    Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hey @wscontent,

    The CSS stays in the post itself. It will be the same as removing it manually, just harder.

    If you remove the plugin, the CSS will stay in the post (until you open and republish then it will go away itself) but it won’t appear in the front to the users.

    Hope it helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bulk removal of CSS using Blocks CSS: CSS Editor for Gutenberg Blocks’ is closed to new replies.