Feature Request
Hi Mak . For future versions, it would be great if you could add a "select all" and "deselect all" for 'spacing' and 'colors' in the preview mode before confirming imports.
It would also be great if there was a way to include custom variables. Each time I upgrade, I lose my custom images, links, and text. My custom prefix of "j-" was saved in gradients, but not in links, text, or images.
Here'sWhat’s happening
“Upgrade” here almost certainly means re-importing the KrafterPRO Design System (Quick install / Downloads / Replace), not merely updating the plugin zip.
Design System 3.0’s global_variables only contain:
- 46 spacing numbers
- 2 fonts
- 0 images, links, text/strings, or gradients
In Replace mode, the site’s globals are rebuilt from that file. Anything on the site that isn’t in the file is removed (except brand font/color slots and protected name prefixes).
So custom j-* images, links, and text get wiped because the Design System file doesn’t include them.
Why gradients might have “survived”
Current code does not specially protect gradients over images/links/text. Prefix protection is type-agnostic.
So if j- stayed only on gradients, likely causes are:
j-wasn’t set as a protected prefix (or not for those items), and the gradient they still see is something else (hardcoded CSS, a different name, etc.)- Their labels don’t consistently contain
j-on images/links/text (protection matches label/name/id substring, case-sensitive) - They’re remembering an older outcome / partial restore
If j- is configured under Reset → Protected name prefixes, Replace should keep matching items of all types.
Here's what you need to do...
- Use Merge when upgrading Design System on a customized site (keeps site-only customs; overlays matching IDs).
- Add protected prefix
j-before any Replace (Reset tab → Protected name prefixes). - Export a full backup first (AJAX export includes all Divi variable types, even ones the Export UI doesn’t list).
- If already lost: use Rollback if a snapshot exists, or re-import their backup JSON.
Mak . Thank you for your thorough explanation Mak. Yeah, I added j- to them and yes, I realized after I posted this that I needed to add my custom prefix to these items. I didn't when I posted this. Then I saw you do have a bulk preset and variable delete option was added that I originally missed. However, it still didn't work for deleting duplicates. For example, if i searched "k-button", it would obviously show all the presets but I couldn't delete just the duplicates.
When I merged to 3.0, my presets duplicated and went from 222 to 513.