• I like your plugin, it’s very powerful. But I don’t like that it makes a mess in my source code. It injects CSS and JS inside <style> and <script> tags. It would be awesome to see new option – save CSS and JS in files. So we could have something like this in source code:
    <link rel='stylesheet' id='my-snippet1-css' href='/wp-content/uploads/code-snippets/k1Sf0hjas.css' type='text/css' media='all' />
    Elementor does it. It saves CSS in files inside uploads directory.

    • This topic was modified 3 years, 2 months ago by heavylogic.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    This will be a feature in Code Snippets v3 Pro.

    Thread Starter heavylogic

    (@heavylogic)

    Awesome. Is it too early to ask about pricing? Is there gonna be lifetime license?

    Plugin Author Shea Bunge

    (@bungeshea)

    There will be a limited run of lifetime licenses on launch.

    Thread Starter heavylogic

    (@heavylogic)

    Also… I’m using multisite in WordPress. So I hope this new feature gonna be compatible. There should be no problems if you just give files random names and check if that random name already exists in the folder. But better way of doing this is to check if multisite is enabled, if it does then get current site ID and then you can change path to uploads directory with that ID. This way if I delete one of sites, it won’t leave some unused CSS and JS files.

    Plugin Author Shea Bunge

    (@bungeshea)

    Yep, completely WordPress multisite compatible. It doesn’t actually save physical files, but generate the compiled CSS/JS as a URL endpoint and ensures it’s fully cached by the browser.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Save CSS and JS snippets as files’ is closed to new replies.