Tagged: avia layout builder
Private content details below to login, inspect and replicate.
Problem description:
A page built with Avia Layout Builder is updated using advanced layout mode. Changes preview OK, and publish OK.
Now, when we open the page again to make further edits, ALB shows the previous content widgets only.
Preview still shows the updated version, as does the live page.
But we can’t edit the page again without rebuilding everything from scratch.
If we republish the page in this state, the live page reverts to old version (and matches ALB), but preview still shows the updated state that we want.
Things I’ve tried:
Clearing cache, different browsers, incognito mode
Disabling all plugins
Switching themes and switching back again
Editing and restoring template-builder.class.php ( https://go-creative.com.au/tutorials/fix-avia-layout-builder-when-it-wont-load/)
I found that the problem was caused by emojis in the content widgets :(
They would render fine in preview, outputting markup like this on the preview page:
<img alt="😉" src="https://s.w.org/images/core/emoji/2.4/svg/1f609.svg" />
In both the Visual and Text tabs of the Text Block widget the emoji image itself displayed (no codepoint html reference in the text tab)
For some reason, after publishing a content widget with an emoji in it, Avia Layout Builder would revert to the last save that didn’t have any emoji.
This has been confirmed by making numerous different edits, publishing and removing emojis and republishing
Hi,
Thank you for letting us know, we will be sure to check that further.
Best regards,
Basilis