Title: Duplicate + Save destroys shortcode
Last modified: October 13, 2025

---

# Duplicate + Save destroys shortcode

 *  Resolved [clairewerk](https://wordpress.org/support/users/clairewerk/)
 * (@clairewerk)
 * [8 months ago](https://wordpress.org/support/topic/duplicate-save-destroys-shortcode/)
 * We have working shortcodes with custom CSS. Usually, when we want to create a
   new one for the next iteration of our events, we clone the old one and edit the
   newly created one.
 * The last time we did this (around March 2025), everything worked fine. Now, we
   get a critical error; we keep both wordpress and all plugins updated.
 * Steps to reproduce:
   (1) Have an existing, working shortcode(2) Clone it via the
   button(2a) Clone one works fine(3) Edit the picture/band in the preview and save(
   3a) Editing works fine(4) Edit the custom CSS code and save(4a) Code is now broken
   in both the editing menu and the frontend
 * This can be reproduced by cloning an existing one, “editing” it by just pressing
   save.
 * Looking at the exported JSON, two different effects happen:
   (1) >>\”<< does not
   get properly translated to escaped code >>\\\”<<, but only up to the stylesheet.
 *     ```wp-block-code
       "rawdata":"{\"oxi-image-hover-col-lap\":
       ```
   
 * vs.
 *     ```wp-block-code
       "rawdata":"{\\\"oxi-image-hover-col-lap\\\":
       ```
   
 * (2) There seems to be an insert of unneccessary non-breaking spaced:
 *     ```wp-block-code
       image-hover-preview-color\":\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"
       ```
   
 * vs.
 *     ```wp-block-code
       image-hover-preview-color\\\":\\\"#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF#FFF\\\",
       ```
   
 * I’m happy to provide the JSON files if you let me know how.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fduplicate-save-destroys-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Richard](https://wordpress.org/support/users/richardmallick/)
 * (@richardmallick)
 * [8 months ago](https://wordpress.org/support/topic/duplicate-save-destroys-shortcode/#post-18679424)
 * Hi,
   Thank you for reaching out!
 * To assist you further, please contact us through our support form here: [https://wpkin.com/contact-us/](https://www.facebook.com/oxilabdev)
 * We’ll be happy to help you there.
 * Best regards,
   Richard
 *  Plugin Author [Richard](https://wordpress.org/support/users/richardmallick/)
 * (@richardmallick)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/duplicate-save-destroys-shortcode/#post-18684550)
 * Hello,
 * This thread has been inactive for a bit, so I’m going to mark it as Resolved 
   now. Please feel free to open a new one if you have any further questions.
 * Regards,
   Richard

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

The topic ‘Duplicate + Save destroys shortcode’ is closed to new replies.

 * ![](https://ps.w.org/image-hover-effects-ultimate/assets/icon-256x256.png?rev
   =3286352)
 * [Image Hover Effects Ultimate ( Image Gallery, Effects, Lightbox, Comparison & Magnifier )](https://wordpress.org/plugins/image-hover-effects-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/image-hover-effects-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/image-hover-effects-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/image-hover-effects-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-hover-effects-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-hover-effects-ultimate/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Richard](https://wordpress.org/support/users/richardmallick/)
 * Last activity: [7 months, 3 weeks ago](https://wordpress.org/support/topic/duplicate-save-destroys-shortcode/#post-18684550)
 * Status: resolved