Overview

Poltio Floating Slideover Widget helps you go online with Poltio Widgets faster by eliminating the task for you to design a place where Poltio Widgets appear in your web page.

You can add a simple code snippet on your page and we will add a slideover widget in all the pages you added the code snippet to.

You can select to put a specific content or you can use the same dynamic widget snippet in all your pages and then decide which content will be displayed on which page based on page url from Poltio Platform.

How to use floating slideover widgets in your page

You can add floating slideover widget to your web page in 2 ways, one for a specific content which will always open that specific content and dynamic widget which you can control which content should be loaded based on the page url from poltio platform.

So you can use the same snippet to load different widgets based on url.

Specific Content

  • If you want to use a specific content, you can use it as in the example. Here you need to add the public id of your content to the data-content parameter.

Example Spesific Content Floating Slideover Widget

<script defer src="https://platform.poltio.com/widget.js"></script>
<div
  class="poltio-widget-floating"
  data-content="your-content-public-id"
></div>

Dynamic Content (based on url)

  • Dynamic Widgets allows you to display different content without changing the SDK/iFrame code in your page depending on the URL of the page.

  • Here you need to add the your pid to the data-pid parameter.

  • You can create dynamic widget from the Platform dynamic widgets page.

Example Dynamic Content Floating Slideover Widget

<script defer src="https://platform.poltio.com/widget.js"></script>
<div
  class="poltio-widget-floating"
  data-pid="your-pid"
></div>

Customization

Parameters

  • Name
    data-bgcolor
    Description

    The background color of the button that will appear on the page. bash data-bgcolor="rgba(0, 158, 235, 1)"

  • Name
    data-textcolor
    Description

    The text color of the button that will appear on the page. bash data-textcolor="rgba(0, 0, 0, 1)

  • Name
    data-text
    Description

    The text of the button that will appear on the page. bash data-text="Your Button Text"

  • Name
    data-position
    Description

    The position of the button that will appear on the page. bash data-position="center-left" bash data-position="top-right"

  • Name
    data-sidebarposition
    Description

    Position of the sidebar to be opened. bash data-sidebarposition="left" bash data-sidebarposition="right"

  • Name
    data-bg
    Description

    Background color of the sidebar that will open. bash data-bg="rgba(255, 255, 255, 1)"

How to use paramaters

<script defer src="https://platform.poltio.com/widget.js"></script>
<div
  class="poltio-widget-floating"
  data-content="your-content-public-id"
  data-bgcolor="rgba(0, 158, 235, 1)"
  data-textcolor="white"
  data-text="Choose Together"
  data-position="center-left"
  data-sidebarposition="right"
  data-uuid="XXX"
  data-loc="en"
  data-disclaimer="off"
  data-resultfit="vf"
  data-bg="rgb(243, 244, 246)"
></div>

Add via Google Tag Manager

You can also add this to your page with Google Tag Manager.

For this, you can follow the steps in the documentation: Google Docs