• Resolved clairewerk

    (@clairewerk)


    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.

    "rawdata":"{\"oxi-image-hover-col-lap\":

    vs.

    "rawdata":"{\\\"oxi-image-hover-col-lap\\\":

    (2) There seems to be an insert of unneccessary non-breaking spaced:

    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.

    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Richard

    (@richardmallick)

    Hi,
    Thank you for reaching out!

    To assist you further, please contact us through our support form here: https://wpkin.com/contact-us/

    We’ll be happy to help you there.

    Best regards,
    Richard

    Plugin Author Richard

    (@richardmallick)

    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.