Messy Variables
Hi, can anyone point me in the right / best direction please....
Not quite sure how i got here, but my colour variables are a big long (240+) messy list of colours with names like gcid-2b8d49cc-4dc0-4b92-8568-3101019e3d51. I can delete them one at a time, or edit them to the right names
BUT...
I either want to start over with a small fresh pallette, or bulk-edit (delete mostly) all these colours i dont want / use, becasue as im buildling pages, its a pain to scroll through all the unwanted stuff.
Thanks in advance
Hi Jason
Those long gcid-… names are Divi’s own ids for global colours that were never given a proper name. The named ones at the top (Primary Color, Day Centre Red, Heading Text Color, Body Text Color, Link Color, and so on) are your real palette. Link Color following Primary Color is expected.
They usually get there in one of two ways. Either a colour was saved as global in the builder without typing a name, or a layout, section, or Theme Builder pack was imported. Each import adds its own colours, and they add up. This is stored Divi data, not a fault in the palette, and it is not something that keeps duplicating while you build.
Don’t wipe the list and start again. Pages and presets store the id, not the name you see. Deleting a colour that is still in use makes those elements lose it. Renaming is safe.
Two practical options:
- While you build, use the search box at the top of Variables and type the name you want (Primary, Heading, Day Centre). You don’t have to scroll the long list to pick a colour.
- To actually clear them out, take a snapshot first (KrafterPRO → Snapshots). Then either rename the few
gcid-colours you still want, or delete the ones you don’t, from Divi’s Variables screen. In KrafterPRO, Cleanup → Targeted cleanup → Find & delete variables can remove a batch, and it shows which matches are still used on pages, presets, or Theme Builder. A snapshot is saved before that delete, and Rollback puts the list back.
One caution if you use that search: searching gcid- also matches named colours such as Day Centre Red and white, because their hidden id starts with gcid-. Primary, Secondary, Heading, Body, and Link are left alone. Read the list before you confirm. If a named colour is in it, don’t delete that search. “Show unused only” hides rows in the list, but the delete still removes every match.
Mak . Hi Mak, i found that in the targeted cleanup i couldn't really use the gcid string as a valid search term because (as you pointed out) even the named colours also had that as a hidden string.
So, i think i found a sort of work-around by renaming all the gcid variables (colours) as 'remove' and then i used targeted search to find and delete them. This appears to work in practise, as my colour count goes down, but it does pop up an error messafge saying the delete has failed (see attached)
This is still on a staging server before i get really stuck into the biggest chunk of the build, so i think that ideally i'd like to start afresh with a 'clean' install of the design system and batch of colours. I think i remember having that option in earlier versions of krafterpro, but how do i do that with these v5.1x updated versions?
Thanks
jason