{"id":866,"date":"2024-10-15T13:42:54","date_gmt":"2024-10-15T11:42:54","guid":{"rendered":"https:\/\/blog.gifty.nl\/?p=866"},"modified":"2024-10-30T13:26:25","modified_gmt":"2024-10-30T12:26:25","slug":"adding-gifty-gift-card-widget-to-your-wix-website-simple-guide","status":"publish","type":"post","link":"https:\/\/blog.gifty.nl\/en\/adding-gifty-gift-card-widget-to-your-wix-website-simple-guide\/","title":{"rendered":"Adding gift card widget to your Wix website: Simple guide"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"gifty-intro-text\">\n\t<p>Do you want to sell gift cards through your Wix website? With the Gifty widget, it&#8217;s a breeze! In this guide, you will learn step-by-step how to integrate the Gifty widget onto your Wix site. Don&#8217;t worry; you don&#8217;t need to be a tech expert to get this done. We&#8217;ve explained everything clearly so you can start selling gift cards through your Wix website in no time.<\/p>\n<\/div>\n\n\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What do you need?<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>1.<\/td><td>A Wix account and a website where you want to place the module.<br><\/td><\/tr><tr><td>2.<\/td><td>A Gifty account. Don&#8217;t have one yet? Easily create one yourself by clicking <a href=\"https:\/\/dashboard.gifty.nl\">here<\/a>, or schedule a <a href=\"https:\/\/gifty.nl\/en\/contact\">demo<\/a> to learn more about Gifty.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><br>Step 1: Adding the Gifty order module to Wix<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>1.<\/td><td><strong>Log in<\/strong> to <a href=\"https:\/\/users.wix.com\/signin\/signup\/password?originUrl=https%3A%2F%2Fmanage.wix.com%2Faccount%2Fwebsites&amp;redirectTo=https%3A%2F%2Fmanage.wix.com%2Faccount%2Fwebsites&amp;overrideLocale=en&amp;forceRender=true\">Wix<\/a>.<\/td><\/tr><tr><td>2.<\/td><td><strong>Select<\/strong> the website you want to edit. (See the screenshot below\ud83d\udc47\ud83c\udffb).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"366\" src=\"https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14141814\/EN_1sw.-Homepage-Wix-1024x366.png\" alt=\"\" class=\"wp-image-872\" style=\"width:839px;height:auto\" srcset=\"https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14141814\/EN_1sw.-Homepage-Wix-1024x366.png 1024w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14141814\/EN_1sw.-Homepage-Wix-300x107.png 300w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14141814\/EN_1sw.-Homepage-Wix-768x275.png 768w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14141814\/EN_1sw.-Homepage-Wix-1536x549.png 1536w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14141814\/EN_1sw.-Homepage-Wix.png 2030w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>3.<\/td><td>Click on <strong>\u2018Settings\u2019<\/strong> at the bottom of the menu.<\/td><\/tr><tr><td>4.<\/td><td>Under <strong>\u2018Advanced\u2019,<\/strong> click on \u2018Custom Code\u2019.<\/td><\/tr><tr><td>5.<\/td><td>On the <strong>\u2018Custom Code\u2019 <\/strong>page, click the blue button <strong>\u2018Add Custom Code\u2019.<\/strong> (See the screenshot below\ud83d\udc47\ud83c\udffb)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"224\" src=\"https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14142112\/EN_2sw.-Code-toevoegen-1024x224.png\" alt=\"\" class=\"wp-image-874\" srcset=\"https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14142112\/EN_2sw.-Code-toevoegen-1024x224.png 1024w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14142112\/EN_2sw.-Code-toevoegen-300x66.png 300w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14142112\/EN_2sw.-Code-toevoegen-768x168.png 768w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14142112\/EN_2sw.-Code-toevoegen.png 1032w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>6.<\/td><td><strong>Add the following code<\/strong>\ud83d\udc47\ud83c\udffb.                                                                                                                          <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script&gt;\nwindow.Gifty = { key: 'WIDGET_KEY_HERE' };\n(function (e, t) {\n    var n = e.createElement(t);\n    n.async = true;\n    n.src = 'https:\/\/static.gifty.nl\/js\/widget.js';\n    var r = e.getElementsByTagName(t)&#91;0];\n    r.parentNode.insertBefore(n, r);\n})(document, 'script');\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>7.<\/td><td>Replace <strong>WIDGET_KEY_HERE<\/strong> with your unique integration code, which you can find in the <a href=\"https:\/\/dashboard.gifty.nl\/settings\/module\/placement\">Gifty Dashboard<\/a> by clicking on <strong>\u2018Widget\u2019<\/strong> and then on <strong>&#8216;Installation&#8217;<\/strong>.<\/td><\/tr><tr><td>8.<\/td><td>Copy your <strong>\u2018Gifty Key\u2019<\/strong> from the right-most column<\/td><\/tr><tr><td>9.<\/td><td>Return to Wix and give the code snippet a name, for example: <em>Gifty order module.<\/em><\/td><\/tr><tr><td>10.<\/td><td>Under <strong>\u2018Add Code to Pages\u2019,<\/strong> select: \u2018All Pages: Load Code Once\u2019.<\/td><\/tr><tr><td>11.<\/td><td>Under <strong>\u2018Place Code in\u2019,<\/strong> choose: <strong>Head<\/strong>.<\/td><\/tr><tr><td>12.<\/td><td>Ensure the script type is set to <strong>\u2018Essential\u2019.<\/strong><\/td><\/tr><tr><td>13.<\/td><td>Click <strong>\u2018Apply\u2019<\/strong>. The Gifty widget will now be loaded on your Wix site. (See the screenshot below\ud83d\udc47\ud83c\udffb)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"243\" data-id=\"879\" src=\"https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14143354\/EN_3sw.-Koptekst-Aangepaste-code.png\" alt=\"\" class=\"wp-image-879\" srcset=\"https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14143354\/EN_3sw.-Koptekst-Aangepaste-code.png 1010w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14143354\/EN_3sw.-Koptekst-Aangepaste-code-300x72.png 300w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/14143354\/EN_3sw.-Koptekst-Aangepaste-code-768x185.png 768w\" sizes=\"(max-width: 1010px) 100vw, 1010px\" \/><\/figure>\n<\/figure>\n\n\n\n<p><br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Open the Gifty order module via a button or link<\/h2>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>1.<\/td><td><strong>Log in<\/strong> to <a href=\"https:\/\/users.wix.com\/signin\/signup\/password?originUrl=https%3A%2F%2Fmanage.wix.com%2Faccount%2Fwebsites&amp;redirectTo=https%3A%2F%2Fmanage.wix.com%2Faccount%2Fwebsites&amp;overrideLocale=en&amp;forceRender=true\">Wix<\/a>.<\/td><\/tr><tr><td>2.<\/td><td><strong>Select<\/strong> the website you want to edit.<\/td><\/tr><tr><td>3.<\/td><td>Click on<strong> \u2018Settings\u2019 <\/strong>at the bottom of the menu.<\/td><\/tr><tr><td>4.<\/td><td>Under <strong>\u2018Advanced\u2019,<\/strong> click on <strong>\u2018Custom Code\u2019.<\/strong><\/td><\/tr><tr><td>5.<\/td><td>On the <strong>\u2018Custom Code\u2019<\/strong> page, click the blue button <strong>\u2018Add Custom Code\u2019.<\/strong>                                             <br>(See screenshot 2)<\/td><\/tr><tr><td>6.<\/td><td><strong>Add the following code:<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script&gt;\nfunction setElementAsGiftyToggle(textToFind, elementSelector = '*') {\n    let elements = document.querySelectorAll(elementSelector);\n    \n    elements.forEach(function(element) {\n        if (element.textContent.trim() === textToFind) {\n            element.addEventListener('click', function(event) {\n                event.preventDefault();\n                Gifty.open();\n            });\n        }\n    });\n}\n\n\/\/ Adjust the text below to what it should be, for example: 'Buy gift card' or 'Order now!'\nsetElementAsGiftyToggle('Buy gift card');\n&lt;\/script&gt;\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>7.<\/td><td>Give the code snippet a name you like, for example: <em>Gifty order <br>module trigger(s).<\/em><\/td><\/tr><tr><td>8.<\/td><td>Under \u2018Add Code to\u2019, select: <strong>\u2018All Pages: Load Code Once\u2019 <\/strong>or <strong>specific pages<\/strong>.<\/td><\/tr><tr><td>9.<\/td><td>Under <strong>\u2018Place Code in\u2019<\/strong>, choose: <strong>Body &#8211; End.<\/strong><\/td><\/tr><tr><td>10.<\/td><td>Ensure the script type is set to <strong>\u2018Essential\u2019<\/strong> and Click <strong>\u2018Apply\u2019.<\/strong> Now, all buttons or links with the <br>text <em>\u2018Order Gift Card\u2019<\/em> will open the Gifty order module. (See the screenshot below\ud83d\udc47\ud83c\udffb)<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1007\" height=\"236\" src=\"https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/15103054\/EN_4sw.-Hoofdtekst-einde-Aangepaste-code.png\" alt=\"\" class=\"wp-image-893\" srcset=\"https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/15103054\/EN_4sw.-Hoofdtekst-einde-Aangepaste-code.png 1007w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/15103054\/EN_4sw.-Hoofdtekst-einde-Aangepaste-code-300x70.png 300w, https:\/\/blog-storage.ams3.cdn.digitaloceanspaces.com\/app\/uploads\/2024\/10\/15103054\/EN_4sw.-Hoofdtekst-einde-Aangepaste-code-768x180.png 768w\" sizes=\"(max-width: 1007px) 100vw, 1007px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ready to sell gift cards?<\/h2>\n\n\n\n<p>With these steps, the Gifty gift card module is now integrated into your Wix website. Visitors can easily order gift cards through your site. Need help with the installation or want to learn more about the possibilities? Schedule a <a href=\"https:\/\/gifty.nl\/en\/contact\">demo<\/a> or <a href=\"https:\/\/gifty.nl\/en\/contact\">contact<\/a> us. We&#8217;re happy to assist you!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What do you need? 1. A Wix account and a website where you want to&#8230;<\/p>\n","protected":false},"author":6,"featured_media":867,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[15],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/posts\/866"}],"collection":[{"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/comments?post=866"}],"version-history":[{"count":27,"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":1100,"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/posts\/866\/revisions\/1100"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/media\/867"}],"wp:attachment":[{"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/media?parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/categories?post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gifty.nl\/en\/wp-json\/wp\/v2\/tags?post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}