How to show "take this course" button in course Directory and course category

Home Forums Legacy Support Support queries How-to & Troubleshooting How to show "take this course" button in course Directory and course category

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #41533
    Yahya
    Spectator
    Hello there I want the student to be able to add courses to his account easily so I want the "take this course" button to appear under each course (in course directory and course category pages) without the need to go to course page.
    #41647
    H.K. Latiyan
    Participant
    You can use this code in your wplms-customizer.php file present in your wplms customizer plugin: add_action('bp_directory_course_item','custom_show_course_button_in_course_directory'); function custom_show_course_button_in_course_directory(){  echo the_course_button(); }
    #41648
    Yahya
    Spectator
    thx this code will stay after update?
    #41650
    H.K. Latiyan
    Participant
    wplms customizer plugin is never updated so it will not be lost after update, this plugin is exclusively provided for customization purpose only.
    #41651
    H.K. Latiyan
    Participant
    If you are using blank child theme then you can put this code in function.php file of child theme, this child theme is also provided for customization purpose only.
    #41674
    Yahya
    Spectator
    it works like a dream in Course Directory, However in course category page under the course some courses have "take course" button and some have "free course" instead
    #41840
    H.K. Latiyan
    Participant
    Unable to replicate the issue on our test setup. The free courses for logged in users show start course or continue course button. And for non logged in users it shows take this course button, refer: http://prntscr.com/aplbuv  
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to show "take this course" button in course Directory and course category’ is closed to new replies.