I add a script in Page parameters → custom code → body script end of page. It show the script in the builder but as soon as I reload the page, the script box is empty. And the script is not seen in the front source code.
If I put <script>console.log('🛠️ Si vous voyez ce log, le script passe bien !');</script>
in either of the header script, body script or footer script of the page custom code.
The script isn’t outputted in front.
And relauching bricks show that the script have disappeared in the builders.
There is no javascript error in the console.
The problem is still the same if i desactivate all plugins and bricks child theme. No way to save a page script also in a blank page even when only bricks is on the website.
Maybe a start of the direction for the problem :
It seems that I can’t add any javascript or code anymore. Code added before the v2 update worked (was in RC2 then) but I can’t modify it, my changes revert to the code that was there before. If I add a new code block, this new code block is never outputted in front and disappear from the builder when I relaunch Bricks.
Of course I sign and save in bricks.
I have updated to 2.0.1
Also have tried with everything desactivated except Bricks. As I edited my previous message while you were writing, i add that the problem seems broader than just page settings.
Maybe a start of the direction for the problem :
It seems that I can’t add any javascript or code anymore. Code added before the v2 update worked (was in RC2 then) but I can’t modify it, my changes revert to the code that was there before.
If I add a new code block, this new code block is never outputted in front and disappear from the builder when I relaunch Bricks.
Of course I sign and save in bricks.
Here you see it’s not only the javascript part. As I set content in the html part of code block. It’s the whole block which isn’t saved and disappeared.
I just added console logs to each available JS area (Page settings for the page and template, and in an executed code element) and can’t see any issue. I reloaded the builder, logged out, tested in incognito – all good on my end.
Have you already tried with a different user account? There might be something wrong with your builder capabilities
Strange.
I tried with a newly created user account with admin right and no luck I can’t no more add a code element or change template custom code.
I use AAM Advanced Access Manager with support for multiple roles and my account as admin role and another custom role. So I created again a new account with only admin right like the account created for you. But still no luck. If I add a new code element, this element doesn’t save and disappear, even without telling the element to execute code.
Even with the AAM plugin desactivated, the problem remain the same. I don’t know what to do.