How to Clone an Element on a Website

Hello,

How would I go about adding a pop up form similar to the one found on the bottom left of this site? Thanks!

http://flippa.com/blog/the-best-wordpress-plugins-to-monetize-your-site/

  • Ash

    Hello @steve_tullius

    I hope you are well today and thanks for asking the question.

    You can't easily copy a part on a website and apply it into your wordpress site. Rather, I am giving you an idea, try to apply this unless you don't get any plugin.

    Use some html in footer.php:

    <div id="slidePop">
    <!-- Use html form or other thing here -->
    </div>

    In css:

    #slidePop{
    position: absolute:
    left: 0;
    bottom:0;
    /* Apply other styles that you need to design that form */
    }

    Then try the following code in footer.php:

    <script type="text/javascript">
    jQuery(function($) {
      $(window).scroll(function() {
        var scrollBottom = $(document).height() - $(window).height() - $(window).scrollTop();
        if(scrollBottom < 50) {
          $('#slidePop').slideUp();
        }else{
          $('#slidePop').slideDown();
        }
      });
    });
    </script>

    Please let me know if that works for you.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.