{"id":252,"date":"2021-08-21T07:30:29","date_gmt":"2021-08-21T07:30:29","guid":{"rendered":"https:\/\/support.konnectclub.com\/?ht_kb=embedding-a-widget"},"modified":"2021-11-12T09:03:47","modified_gmt":"2021-11-12T17:03:47","slug":"embedding-a-widget","status":"publish","type":"ht_kb","link":"https:\/\/support.konnectclub.com\/?ht_kb=embedding-a-widget","title":{"rendered":"Embedding a Widget"},"content":{"rendered":"\n<p>Widgets are self-contained blocks of functionality of your <span>Konnectclub<\/span> platform account that you can embed on your own website as a white-label integration. You simply copy the provided code snippet for each of these widgets and paste it into your Website builder tool, no developer skill is required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Copy Code Snippet<\/h2>\n\n\n\n<p>There are <strong>four<\/strong> types of Widgets available. You will copy the necessary code snippet in one of the following ways depending on the Widget you want to embed:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Event Widget<\/h3>\n\n\n\n<p>This type of Widget shows up-to-date information summary of an event and the ticket check-out option directly on your website. Full details of the event, including the entire ticket payment flow, is presented as a light-box without leaving your website.<\/p>\n\n\n\n<p>The code snippet for this Widget can be obtained under the \u201cShare\u201d option of each published Event Page under your business account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"705\" src=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip0-35.png\" alt=\"\" class=\"wp-image-255\" srcset=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip0-35.png 556w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip0-35-237x300.png 237w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip0-35-39x50.png 39w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip0-35-47x60.png 47w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip0-35-79x100.png 79w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Event List Widget<\/h3>\n\n\n\n<p>This widget shows a list of events under your account in a chronological calendar format. Events are dynamically ordered based on their closeness to the current date. Each event presents a link target to show additional details and the option to &#8220;Get Ticket&#8221; via a light-box.<\/p>\n\n\n\n<p>The code snippet for this Widget can be obtained under the &#8220;Share&#8221; option on top of the&nbsp;Events Tab&nbsp;on your account&nbsp;Dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"459\" height=\"399\" src=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip1-22.png\" alt=\"\" class=\"wp-image-256\" srcset=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip1-22.png 459w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip1-22-300x261.png 300w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip1-22-50x43.png 50w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip1-22-60x52.png 60w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip1-22-100x87.png 100w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><\/figure>\n\n\n\n<p>  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Event Idea Widget<\/h3>\n\n\n\n<p>This widget shows the information about an event package and an option to &#8220;Book&#8221; it directly on your website. Full details of the package and the booking flow is presented as light-box if initiated by the user.&nbsp; <\/p>\n\n\n\n<p>The code&nbsp;snippet for this Widget can be obtained under the &#8220;Share&#8221; option of each available&nbsp;Event Idea Page&nbsp;under your business account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"508\" height=\"670\" src=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip2-12.png\" alt=\"\" class=\"wp-image-257\" srcset=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip2-12.png 508w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip2-12-227x300.png 227w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip2-12-38x50.png 38w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip2-12-45x60.png 45w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip2-12-76x100.png 76w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Event Idea List Widget<\/h3>\n\n\n\n<p>This widget shows a list of event packages under your business account. Event packages are dynamically ordered based on their popularity. Each event package presents a link target to show additional details and the option to &#8220;Book&#8221; via a light-box. <\/p>\n\n\n\n<p>The code for this Widget can be obtained under the &#8220;Share&#8221; option on top of the&nbsp;Ideas Tab&nbsp;on your business account&nbsp;Dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"423\" src=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip3-6.png\" alt=\"\" class=\"wp-image-258\" srcset=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip3-6.png 493w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip3-6-300x257.png 300w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip3-6-50x43.png 50w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip3-6-60x51.png 60w, https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip3-6-100x86.png 100w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"wysiwyg-color-black\">Paste Code Into Your Website Builder&nbsp;<\/span><\/h2>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\"><strong>Important<\/strong><br>The embed host website must be served from a secure domain (represented by a <strong>HTTPS <\/strong>address) and must match the official website mentioned on your <span>Konnectclub<\/span> Business Profile&nbsp;in order to present the full functionality under your own domain. Failure to meet the above hosting condition will not disable the Widget, but any click into it would result in a pop-up to a full page co-branded experience.&nbsp;<\/p>\n\n\n\n<p>Now you will paste the code snippet obtained in the previous step. Look for the option to embed external widgets or code-snippets or videos in your specific Website Builder. This is sometimes available in the &#8220;source&#8221; mode or &#8220;code&#8221; mode. You must paste the code entirely as you obtained. If you are using one of the following Website Builder tools, please see the linked reference article for specific details:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Squarespace<\/strong> &#8211; <a rel=\"noopener\" href=\"https:\/\/support.squarespace.com\/hc\/en-us\/articles\/206543167\" target=\"_self\">Code Blocks<\/a><\/li><li><strong>WordPress<\/strong> &#8211; <a href=\"https:\/\/wordpress.org\/support\/article\/custom-html\/\" data-type=\"URL\" data-id=\"https:\/\/wordpress.org\/support\/article\/custom-html\/\">Custom HTML Block<\/a><\/li><li><strong>Wix<\/strong> &#8211; <a rel=\"noopener\" href=\"https:\/\/support.wix.com\/en\/article\/adding-html-code-to-posts-in-the-new-wix-blog\" target=\"_self\">HTML Code<\/a><\/li><li><strong>Weebly<\/strong> &#8211; <a rel=\"noopener\" href=\"https:\/\/www.weebly.com\/app\/help\/us\/en\/topics\/create-widgets-embed-code-and-add-external-content\" target=\"_self\">External Content<\/a><\/li><li><strong>GoDaddy<\/strong> &#8211; <a rel=\"noopener\" href=\"https:\/\/www.godaddy.com\/help\/add-html-code-to-page-12286\" target=\"_self\">HTML Code<\/a><\/li><li><strong>ArtStoreFronts<\/strong> &#8211; <a rel=\"noopener\" href=\"https:\/\/artstorefrontssupport.zendesk.com\/hc\/en-us\/articles\/225924407-How-To-Embed-a-Youtube-Video\" target=\"_self\">Embed<\/a> (follow the process from step 6 onward)<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Customize Widget (Advanced)<\/h2>\n\n\n\n<p>Each embed Widget can be further customized by adding one or more of the following data-* attributes to the script tag in the code snippet. For example, the following code snippet will use a <strong>dark theme<\/strong>, will force the <strong>portrait layout<\/strong> regardless of the screen size and will not show the title and the description on the Widget .<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;script src=\"https:\/\/www.konnectclub.com\/embed\/card\/event\/241373808975\" <br><span style=\"font-weight: bolder;\">    data-theme=<\/span>\"dark\" <br><span style=\"font-weight: bolder;\">    data-layout=<\/span>\"portrait\" <br><span style=\"font-weight: bolder;\">    data-exclude=<\/span>\"title,details\"&gt;&lt;\/script&gt;<\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Options<\/td><td>Possible Values<\/td><td>Explanation<\/td><\/tr><tr><td><strong>data-theme<\/strong><\/td><td>\n<p class=\"wysiwyg-text-align-center\"><strong>dark,&nbsp;<\/strong><strong>light<\/strong><\/p>\n<\/td><td>Specify&nbsp;<em>dark<\/em> theme if the hosting page has a dark background. Dark theme will use black background with a white foreground. Default value, when nothing is specified, is <em>light<\/em>.<\/td><\/tr><tr><td><strong>data-layout<\/strong><\/td><td>\n<p class=\"wysiwyg-text-align-center\"><strong>portrait, landscape<\/strong><\/p>\n<\/td><td>Specify a layout to force that orientation regardless of the screen size. The default mode, when not specified, is responsive and changes depending on the screen width.<\/td><\/tr><tr><td><strong>data-layout-breakpoint<\/strong><\/td><td>\n<p class=\"wysiwyg-text-align-center\"><strong>a number<\/strong><\/p>\n<\/td><td>Specify a pixel value which will force a switch of orientation from portrait to landscape in the auto (i.e. not specified) layout mode. If the available width is smaller than this value, the portrait mode is chosen. Default is 600.<\/td><\/tr><tr><td><strong>data-exclude<\/strong><\/td><td>\n<p class=\"wysiwyg-text-align-center\"><strong>title, image, info, actions, details<\/strong><\/p>\n<\/td><td>\n<p>Specify any combination of the possible values separated by comma to exclude the corresponding part from the widget. Default is none exclude. Following diagram shows various parts:<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/support.konnectclub.com\/wp-content\/uploads\/2021\/08\/mceclip4-3.png\" alt=\"mceclip4.png\"><\/figure><p><\/p>\n<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Widgets are self-contained blocks of functionality of your platform account that you can embed on your own website as a white-label integration. You simply copy the provided code snippet for each of these widgets and paste it into your Website builder tool, no developer skill is required. Copy Code Snippet&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[27],"ht-kb-tag":[],"class_list":["post-252","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-streaming"],"_links":{"self":[{"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":8,"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/252\/revisions"}],"predecessor-version":[{"id":881,"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/252\/revisions\/881"}],"wp:attachment":[{"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=252"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/support.konnectclub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}