• Hi

    Thanks for your great job on this plugin.

    I would like to know if I can put a text link within the popup to close. Working the same way when I click on the X.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pozzad

    (@pozzad)

    Hi
    unfortunately the popup theme doesn’t provide this feature

    hi,
    here my solution:

    first do you make your popup by the editor

    then rename the file uploads/smp_popup.html in something else .php

    into the new file .php you have to insert the next code in the head section to grab the url in the parent frame:

    <script type="text/javascript">
    function myurl()
    {
    var parentUrl = parent.location.href;
    return parentUrl;
    
    }
    </script>

    then insert in the place you want the link to close the popup (in this case is a image link):

    <script type="text/javascript">
    document.write("<a href=" + myurl() + " target=\"_top\"><img title=\"Enter into the website\" src=\"/wp-content/uploads/2011/07/enter_website.png\" alt=\"Enter into the website\" width=\"225\" height=\"80\" /></a>")
    </script>

    at last, you have to insert the complete url in the admin panel, to load the new page.php instead of the default html page.

    ciao
    marco

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Super Popup] text link to close the popup’ is closed to new replies.