-
AuthorPosts
-
November 17, 2025 at 12:19 pm #1491401
Hi folks!
I was looking for a way to define a “reusable element” in Enfold, so that after adding it to several pages, if I decide to change any of its features (e.g. text, colour or size), the change is automatically propagated to all the other “reusable elements” I have added to the pages.I thought the “Custom Element” would achieve this, so I read the Custom Elements documentation.
However, I discovered that if you change anything in a Custom Element that has already been used, the change is not propagated to the pages where the element has been used.So, what is the difference between a “Custom element” and a “Template”? Any component that I have just configured can be saved as a template very quickly. Why should I use a custom element instead? Just because I could lock some attributes?
(last question: any way to achieve my original goal, e.g. create a “reusable component” that is automatically updated in all pages when I change its features in a second time, without using CSS tricks? I don’t think so, but you never know :-)
THX in advance.
Bye!
A.-November 18, 2025 at 7:08 am #1491442Hey Angelo,
Thank you for the inquiry.
However, I discovered that if you change anything in a Custom Element that has already been used, the change is not propagated to the pages where the element has been used.
On the Custom Element Templates, you have the option to lock certain element options. When an option is locked, you won’t be able to adjust it on the instance, and when this locked option is updated in the original source, it will be propagated to every instance. However, unlocked options can be changed on every instance of the CET and are unique to each instance, so when this particular option is updated in the original source, every instance will retain its own value. In that case, if you need a global element that can be updated from a single source and doesn’t need to look different or contain different content on certain pages, make sure to lock all the options.
On the other hand, if you need to create a global layout that can be updated from a single source and contains multiple elements, including Custom Element Templates, use the Custom Layout feature.
Let us know if you need more info.
Best regards,
IsmaelNovember 18, 2025 at 11:12 am #1491458That is FANTASTIC. Thanks Ismael, it works as expected. I misunderstood the “Lock/unlock” feature.
Thanks again!November 18, 2025 at 12:01 pm #1491464Unfortunately, it is not 100% compatible with WPML.
I created a CET component of type TEXT, with a simple word: CASA in Italian.
I translate it with WPML, HOUSE.
I add this CET to several pages: in all of them, you see CASA in the Italian version and HOUSE in the English version.If I now change the word to ‘LIBRO’ in the CET, the pages are showing LIBRO in the italian version, but HOUSE in the English version.
I have to open EVERY single page where that CET was used, do a blank ‘UPDATE’ (as it seems like WP is not detecting the change) and then update the English translation in WPML. For every single page.Too bad.
-
AuthorPosts
- You must be logged in to reply to this topic.
