Embed to your wordpress website
Download and activate the Plug And Quiz, Embed Quiz, Plug. Play. Quiz. plugin.
π Installation Steps
Go to Plugins > Add New on WordPress.
- Download and activate the Plug And Quiz, Embed Quiz, Plug. Play. Quiz. plugin. Click on here to download it if you didn't find it and upload it in WordPress.
- In Settings > MySolution, enter your
Domain ID
. Copy domainId - Choose the script position (
header
orfooter
). By default, it is set to the header. - Select the modal position (
bottom-left
,top-left
,top-right
,bottom-right
). - Check Enable script and click Save.
Approach 2: Without Plugin (Manual)
If you do not want to install a plugin, add the script directly to your theme.
π Integration Steps
- Go to Appearance > Theme File Editor.
- Open
header.php
orfooter.php
. - Add the following code:
<script src="http://localhost:5000/api/embed/embed.js" data-domainId="cm95qzois0005ryqly3kyii7o" data-position="bottom-right" defer></script>
π Customization Options
- Script position: Add it in
header.php
for fast loading orfooter.php
for minimal impact. - Modal position: Modify
data-position
(e.g.,top-right
).
β Common Issues
- The quiz does not display? Check
data-domainId
. - JavaScript error? Check the browser console.