embed code Please help

Hi everyone,

For my restaurant I need to embed a code that is given to me by my reservation company.

They gave me the code and told me to place it inside the <body> tag of my website.

I tried to use the "embed code" code function, but it does not work.

How can I get this code to work???

It is really important for me to get this working because of al the corona regulations in my country.

Help would be greatly apriciated.

This is the code they gave me:

    <script> (function (d, s, id, h) { var ftjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; var js = d.createElement(s); js.id = id; js.src="https://cdn.formitable.com/sdk/v1/ft.sdk.min.js"; h && (js.onload = h); ftjs.parentNode.insertBefore(js, ftjs); }(document, 'script', 'formitable-sdk', function () { FT.load('Analytics'); })); </script>
    <div class="ft-widget-b2" data-restaurant="1296228a" data-open="1500" data-open-mobile="false" data-color="#20EBBD" data-language="nl" data-tag="Website" data-toolbar="true" data-toolbar-mobile="true"></div>
Tags (2)
2,258 Views
Message 1 of 4
Report
3 REPLIES 3

@BettyBlue 

I assume this code is for the whole website and not just a particular page. If so, try putting it in SETTINGS-SEO-HEADER CODE. If it's for the homepage only, try putting it in HOMEPAGE-SEO-HEADER CODE. Don't forget to publish afterward.

Hope this helps, Gary.

2,248 Views
Message 5 of 4
Report

Hi Gary,

Thanx for your reply. Unfortunately I tried it, but it does not work.

I'm still looking for a way to get it to work, so if you have any other ideas that would be greatly appriciated.

Kind regards,

Jeroen

2,208 Views
Message 5 of 4
Report

@BettyBlue 

Jeroen

I just took a look at your code and it looks OK to me. It should work in an EMBED CODE box. But it will only appear properly and work after publishing your site. i.e., on a live site, not in the site editor, because it relies on a link to an external source.

I made a test page on a website I'm currently building and added the script, then published. Using Chrome browser, I got a centre box with the words 'Reserveer een tafel'. After clicking that a green drop down menu titled BETTY BLUE appeared in the bottom right corner of the screen with number of persons, calendar and times selections.

So your script does seem to work on a live site. I've now deleted the test page and unpublished the site. 

Gary

2,206 Views
Message 5 of 4
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.