Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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 -->
    #1288780

    Really need this sorted, since once you added the booking widget the page can’t be edited.

    Thank you!

    Regards
    Paul

    #1288861

    Hi,

    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,
    Rikard

    #1289029

    Thank 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!

    #1289550

    Hi,

    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,
    Rikard

    #1289675

    Yes please do that, it would be great!

    Thank you!

    #1290478

    Hi,

    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,
    Rikard

    #1290799

    Hello
    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.
    Thanks

    #1291641

    Hi,

    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,
    Ismael

    #1291920

    I used shortcodes to hold the script and that works fine. Thanks for all your help.

    #1292456

    Hi,


    @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

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.