Creating buy course popup on single course page

To create popup on course page follow the steps :

1. Create a popup form wp-admin -> popup
2 .Add this shortcode

3. Save popup.
4. Add this code in your wp-content/plugins/Wplms-customizer/wplms-cutomizer.php


5. Include this shortcode in your course content.

6.Add this js script in your Wp-admin -> Wplms -> Footer -> Google Analytics Code

Note: You can use as many selectors on the course page.
For example to select the course heading you can use this snippet :
<script>

jQuery(document).ready(function($){

    $(‘.course_lesson,#item-header h3’).on(‘click’,function(){

        $(‘.ajax-popup-link’).trigger(‘click’);

    });

});

</script>

Your popup will appear like this:

Was this article helpful?

Related Articles