In case you’re adding a Visualizer banner on your website or a button in the menu, a trigger to redirect users to the Visualizer is to be added. Please check our short instruction to see how.
Step 1. You need to add a button to a page with any URL.
Step 2. Add #visualizer in the end of the URL: URL#visualizer/.
Step 3. Hide your Wizart button (just add display: none; to the css file of your Wizart button). And then add the following code:
Code Block |
---|
<script> |
...
document.addEventListener('DOMContentLoaded', function(){ |
...
$($('.class').find('a[href$="#visualizer"]')).click(function(e){ |
...
e.preventDefault(); |
...
$('.w-floating-button').trigger('click'); |
...
}); |
...
}); |
...
</script> |
Info |
---|
w-floating-button - a css class of the Wizart button |
How it works? Click on the custom menu button and make a trigger to a real Wizart button.