• Resolved abitofmind

    (@abitofmind)


    You have created a style variation by help of the plugin at:
    /path/to/wp-content/themes/twentytwentythree/styles/

    Now you want “My Style” gone again:

    • Simply deleting mystyle.json there won’t be enough (for a clean removal) I guess. There must be at least one if not more references elsewhere in the theme codebase and possibly also the database, which got created when generating a style variation.
    • Which cleanup actions are necessary file-wise and database-wise?
    • This topic was modified 2 years ago by abitofmind.
    • This topic was modified 2 years ago by abitofmind.
Viewing 1 replies (of 1 total)
  • Plugin Author Matias Benedetto

    (@mmaattiiaass)

    Hi @abitofmind ,
    just removing the variation JSON file is enough to remove the style variation. This is not specific about the plugin but about how WordPress works.

    When you create a style variation using the plugin, all the style changes stored in the database are dumped into the variation JSON file and, after that, removed. So the variation data no longer lives in the database but in the JSON file. If you remove the file they are gone.

    I’m marking this as resolved but feel free to ask if you have further questions.

Viewing 1 replies (of 1 total)
  • The topic ‘How can I remove a style variation again?’ is closed to new replies.