ID Persistence - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

ID Persistence

M

Marcos de Oliveira Leão

SP Page Builder 4 years ago

Hi. Is it safe to use the numbers that sppb generates for IDs in customization via CSS? Example:

#sppb-addon-1611859145280 > div > div > div > div.pull-right > div > span > i {
  color: var(--cor2);
}

Is this number (1611859145280) persistent? If the addon is not deleted, will this ID always be the same?

Thanks.

0
2 Answers
M
Marcos de Oliveira Leão
Accepted Answer
4 years ago #4532

Thanks!

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #4530

Hi, yes, this unique is added to each addon for ever. Every addon have different ID generated.

But if you want to add this same for more addons, use custom class name which can be added inside addon settings. Then for example all addons with "red" class will be red.

0