Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi Luc,

    I do not find the message “Free-No Students Subscribed” in our LearnPress. Could you let me see your site, I will take a look at this and find out what happened.

    Regards,

    Ken

    Thread Starter lucbrialy

    (@lucbrialy)

    Hi Ken,

    Thank you so much for your quick reaction. Awesome!

    You can find the text that I don’t want to be seen above the global course structure and above each lesson here:
    https://www.lucbrialy.com/courses/test-course
    It is in French and the exact words are “Gratuit Pas d’élève inscrit”
    I know this mention comes from the fact that I checked that the course is free, and that there are no students subscribed, but in any case I don’t want that the fact it is free and the number of students appears.

    Thank you again for helping me.

    Luc

    Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi Luc,

    I see that. There are two ways to remove it, override LearnPress templates or add some code snippet. I recommend the second way.

    So, please add the snippet into your current theme functions:

    function your_theme_update_learnpress_templates() {
    	remove_action( 'learn_press_course_landing_content', 'learn_press_course_students', 40 );
    }
    
    add_action( 'after_setup_theme', 'your_theme_update_learnpress_templates' );

    Regards,

    Ken

    Thread Starter lucbrialy

    (@lucbrialy)

    Hi Ken,

    I followed your instructions.

    As a result and as you can see here: https://www.lucbrialy.com/courses/test-course

    the number of students are now indeed invisible, which is very good, but the mention “gratuit” (free) is still present….

    What can we do?

    Regards

    Luc

    Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi Luc,

    I forgot the price, sorry about that. So here it is:

    function your_theme_update_learnpress_templates() {
    	remove_action( 'learn_press_course_landing_content', 'learn_press_course_price', 30 );
    	remove_action( 'learn_press_course_landing_content', 'learn_press_course_students', 40 );
    }
    
    add_action( 'after_setup_theme', 'your_theme_update_learnpress_templates' );

    Try this one more time :).

    Ken

    Thread Starter lucbrialy

    (@lucbrialy)

    Hi Ken,

    This works perfectly!

    Thank you so much for your great support.

    This is an awesome product with an awesome service!

    KR
    Luc

    Plugin Contributor Ken Nguyen

    (@kendy73)

    You’re welcome, Luc!

    Ken

    Super!

    Hello Ken,

    We have just got Learnpress for our school’s website.It’s been great. But, as some of our courses won’t be online we would not like to have prices displayed. In the box, we just have options for “free” and “paid” – when we have to provide the price itself. We would like to hide it or display “upon request”. Is it possible? Can you help us on that?

    Regard and thanks,

    Edward

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hide "Free-No Students Subscribed"’ is closed to new replies.