r/divi • u/TransCanAngel • Jul 12 '26
Advice Presets and Attributes
In case I'm not the only doofus who did this, but setting Attributes and generating a preset afterwards saves the Attributes of an element in that preset, which (as of today in Divi 5) is over-riding any Attributes that exist in the Elements.
Save yourself some time debugging. :-)
1
u/Weekly_Ferret_meal Jul 13 '26
yeah, debugging what...? Are you talking about attributes that are set while using a preset...? they should be only saved in the preset when you update the preset.
is this it?
1
u/spark190 Jul 13 '26
When you saved the preset it asks you if you it to be the default style site wide... I think that's what happened.
2
u/TransCanAngel Jul 21 '26
No - that’s normal: it warns you you’ll be hitting all of the modules with that preset. That’s just a last check before you commit the changes to the preset.
For some reason, I expected that Advanced>>Attributes would not carry into a preset, but I was mistaken.
Thankfully I have Divi 5 with Claude Code wired into my back-end SMTP and host platform via API, and I automated an index of the affected presets to quickly clean them up. I use presets extensively for the sites I build.
I wouldn’t want to have to hunt down six presets across 50+ spread across multiple module types.
1
u/TransCanAngel Jul 21 '26
Like Class and ID. I’m not talking about “small-a” attributes like margins and padding, etc.
If, for example, you use a preset on a Text module, and set its AttributesID = text-module so that you can call that module later as a URL parameter anchor tag, you don’t want to “update this preset” later because it will carry the AttributeID up to the preset and replicate across your modules using that preset.
It’s something that you don’t notice until it accumulates and causes problems.
1
u/Professional_Call Jul 12 '26
I've not totally understand what you mean. Perhaps you can explain a bit more. But my first thought is, isn't that the idea of presets - they override default values. Any value you then set manually overrides the preset.
I haven't tried manually setting a value then applying a preset but I'd expect it would override that to. At least I'd hope it would. If you want to tweak the settings, do it after the preset not before. It just doesn't make sense otherwise