-
AuthorPosts
-
March 14, 2021 at 4:49 pm #1288108
I have a bookatable booking widget in javascript that I’ve used on numerous pages (with enfold) without any issues.
On this page it loads alright, but once I’ve put it in and updated the page. I can’t edit the page after that, it just loads forever.
The code:
<!-- Start Bookatable Code --> <script type="text/javascript" src="https://bda.bookatable.com/deploy/lbui.direct.min.js"></script> <script type="text/javascript"> LBDirect_Embed({ connectionid : "SE-RES-NAMASKAARINDIANRESTAURANTBISTRO_418883:92141", style : { useFlatDesign : false, baseColor : "ab8e54" }, language : "sv-SE" }); </script> <!-- End Bookatable Code -->
March 17, 2021 at 8:40 pm #1288780Really need this sorted, since once you added the booking widget the page can’t be edited.
Thank you!
Regards
PaulMarch 18, 2021 at 4:09 am #1288861Hi,
Please enable debug mode, so that we can copy the content of the page to a test page: https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#debug-mode
There is a 403 error on the admin-ajax.php WordPress file on the page, you might want to reach out to your hosting provider, to see if they can see why the server is responding with that error code.
Best regards,
RikardMarch 18, 2021 at 5:52 pm #1289029Thank you! Do not use a child theme, but I can’t find the line in the functions.php where I should paste the code into?
I search for the code in the functions.php but there is not such code in there it seems ?
Thank you!
March 22, 2021 at 5:18 am #1289550Hi,
It’s on line 17 in functions.php, we can do it for you if you give us permission to activate debug mode for you.
Best regards,
RikardMarch 22, 2021 at 5:19 pm #1289675Yes please do that, it would be great!
Thank you!
March 26, 2021 at 6:00 am #1290478Hi,
Thanks for the update. I’ve enabled debug mode for you, I’m still seeing the 403 error though. Did you try reaching out to your hosting provider? Also, if you have server logs, then please share them with us. You might also want to reach out to the authors of the code you are using, to check if there’s alternative way for you to include the code on your pages. Maybe it works better in a widget for example?
Best regards,
RikardMarch 28, 2021 at 12:18 am #1290799Hello
I am having the same problem with 4.6 and after updating to the latest 4.8.1. The issue is a signup form from Hubspot which had no issues until I came to edit the page to today and it would load but the hourglass keeps spinning. While that is going on, individual elements can be edited, but new ones can’t be added, nor dragged and dropped into new positions nor layout changed. I used debug mode to copy the source into a new test page and same result.
Please see the details in the private section.
ThanksApril 1, 2021 at 3:38 am #1291641Hi,
Thank you for the update.
The layout builder breaks when the scripts are added because of the script tag itself, or the input fields inside if there are any. You may need to refrain from adding or embedding the script directly in the builder and create a custom shortcode for it instead.
// https://codex.wordpress.org/Shortcode_API
Related thread: https://kriesi.at/support/topic/shopify-buy-now-button-javascript-code-integration-problem/#post-1277117
Best regards,
IsmaelApril 2, 2021 at 1:20 am #1291920I used shortcodes to hold the script and that works fine. Thanks for all your help.
April 5, 2021 at 11:36 am #1292456Hi,
@s29ers: Great! Glad it helped. Please feel free to open another thread if you need anything else. Have a nice day.
@paullindqvist: Have you tried creating a custom shortcode for the snippet?Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.