How to launch the contact form using a link or JavaScript function
 
For example, if you have an icon for your working hours in your My Sticky Elements widget and want it to pop up when your website visitors click on ”Check our working hours here”, your link will look like this: 
 

<a href=”javascript:launch_mystickyelements();”>check our working hours here</a>

 
Important!: depending on which icon on your widget you want the Javascript function to open, you need to add the correct number in the brackets of the code. In the example above, the business hours icon is on position 2, so you need to add ”2” between the brackets in your Javascript function:
 

javascript:launch_mystickyelements(2);

 
You can also launch your My Sticky Elements widget using an image. To do that, add an image of your choice in a post or page, then copy the link of the image and add it in place of ”your image link here”.
 

<a href=”javascript:launch_mystickyelements();”>your image link here</a>

 
For example you may want to open the contact form tab through an image. 
 
 
In this example, the contact form icon is on position 1, so you need to add ”1” between the brackets in your Javascript function:
 

javascript:launch_mystickyelements(1);

 
You can use multiple functions at the same time to launch the contact form from an image and the working hours button through a text, following the examples above.
 

Still have questions? Ping us at our Facebook group, and we’d love to help out!