Hi,
Are you using a plugin to create the popup window? Most plugins have some way to ‘trigger’ the open window functions. Most of them work with adressing an URL within the page ( using #link in the URL field ) or linking it with extra classes, or a ‘rel’ field. The last two you can find under ‘advanced’ settings.
According to their FAQ :
Want to insert a popup on a link, that will open up when clicked on the link?
Simply add the following class to it: sg-confirm-popup-#popupid. Ex. Popup This will open a popup before a user goes to the page from the link.
So you can enter that under ‘advanced’ in the ‘extra classes’ field.
can you help me pls.
popup id is 2
what shall I put in the URL and extra classes.
1) If I put a value in URL field and extra classes=sg-confirm-popup-2 then on clicking of button the URL is opening, popup not showing.
2) If URL field is blank and extra classes=sg-confirm-popup-2, on button click nothing happens
I also noticed there is Custom Rel Tag, do we hv to use this please.
Kindly help me.
On click I want to trigger the popup and not to go to any URL, just stay on the same page and show the popup.
Seems like your right. Their FAQ is not that clear.
I got it working more or less like this. They have a ‘insert popup’ button in the editor where you edit your page. If you click that, select the popup and choose ‘click’ event I got this:
[sg_popup id="1" event="click"][/sg_popup]
(note that I left the shortcode content empty)
In the MaxButtons button editor, I put this under extra classes :
sg-popup-id-1
That seems to work. If that still doesn’t do what you want I recommend asking their support howto put the correct class on the button. Some things seem also to be reserverd for their PRO version.