• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Really Simple PopUp Ad

Vortex

Chevereto Member
This may be usefull for people who own several websites or whatever. When users comes to your site and click somewhere, a popup opens and loads another site of your choice.

To install this unzip the attached archive and upload the .js file to your site root or wherever you want. Then go to Dashboard -> Settings -> Banners and place this code in the field Before main title (Homepage).

Code:
<script type="text/javascript" src="./popup.js"></script>
<script type="text/javascript">
Light.Popup.create('https://www.otherwebsitename.com/', {onNewTab: false});
</script>

That's all, you're done :D

You also can customize the code a little bit...
{onNewTab: true} -> Opens a new tab
{onNewTab: false} -> Opens a new window

To change the window size just add...
{width: 1100, height: 850, onNewTab: false}

Hope you like it ;)
 

Attachments

  • popup.zip
    1.4 KB · Views: 14
Back
Top