go directly to the course page or payement page

Home Forums Chit Chat WPLMS customizations go directly to the course page or payement page

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #388471
    anas
    Participant

    Alex(Anshuman Sahu) replied

    1 hour ago

    Please add this script in your wp-admin -> wplms => footer => google anaylitics script :

    <script>
    jQuery(document).ready(function(){
    jQuery('.elementor-element.elementor-element-ede9b04.e-con-full.e-flex.e-con').on('click',function(event){    event.preventDefault();    var $this = jQuery(this);    window.location.href = $this.find('.elementor-shortcode .the_course_button a').attr('href');    });
    });
    </script>
    #388472
    anas
    Participant

    https://vibethemes.ticksy.com/ticket/3420841/


    "It didn't work for me. I entered that into the footer of WPLMS in the Google Analytics script section as requested, but there was no change and no effect."

    #388493
    Anshuman Sahu
    Keymaster

    Hi yes there is an issue with the script I gave :

    please remove that script and add this given script : "course_block"


    <script>

    jQuery(document).ready(function(){

    jQuery('.course_block').on('click',function(event){

    event.preventDefault();

    var $this = jQuery(this);

    window.location.href = $this.find('.elementor-shortcode .the_course_button a').attr('href');

    });

    });

    </script>

    also please add this class to your course block in elementor advanced settings : https://screenpal.com/i/c0jjXYVk7H2

    #388502
    anas
    Participant

    Sure, thank you, okay, great, it works. Now, how do I proceed for the other buttons? Should I simply add the CSS class to each of the other three blocks? Is it the same for the other course pages as well?

    #388533
    Anshuman Sahu
    Keymaster

    yes that is correct : 

    apart from adding the class " course_block "

    you have to add the [course_button] shortcode inside the course_block.

    #388538
    anas
    Participant
    Okay, thank you, that's great then. And now, for the final touch, make the shortcode button transparent and invisible. By doing this, it will prevent us from having to modify the 'Continue' button, which appears smaller and on a pink background
    #388650
    anas
    Participant

    Answer ?

    #388691
    anas
    Participant

    ??

    #388745
    Anshuman Sahu
    Keymaster

    add this code in your wplms-customizer.php file in wplms customizer plugin :

    https://gist.github.com/anshumansahu143/424c7e5ab234bcec725fb26c59dbba7c



    #388866
    anas
    Participant

    it's not working 

    the buttons are still not invisible


    the continue button is still too small compared to the others



    #388871
    Anshuman Sahu
    Keymaster

    fixed it by changing the code in the above gist provided.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.