Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › take the course button
Tagged: take the course button
- This topic has 7 replies, 2 voices, and was last updated 4 years, 5 months ago by logan.
Viewing 8 posts - 1 through 8 (of 8 total)
-
AuthorPosts
-
November 4, 2019 at 7:37 am #232178StudioLeBusParticipantHello, I'm trying to have a "take the course" button in the course archive page, like the course7 setting in the course widget that I use on the homepage... so I added this code that I found in this forum: 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(); } So it worked, and now I have the take the course button in the archive... BUT ... the problem is that there is now 2 "continue course" if the student takes one course... isn't it possible to just choose the course7 design for the course page archive ?? I tried changing the option in the settings wplms / course manager / Default course block style / but it doesn't change nothing in the courses archive, the block design stays always the same.. Thanks for your helpNovember 5, 2019 at 5:56 am #232281loganMemberHello, please share some screenshots for everything you have told me above. also, share the URL of the page. then i will check and tell you the most sophisticated and feasible solution if possible.
Tip: For better support always share a screenshot: Please provide the proper screenshot, use https://prnt.sc/ to upload and share url of the screenshot. If you want to send us a video of the issue, use https://screencast-o-matic.com/ to upload and share URL of the video.November 5, 2019 at 8:19 am #232306StudioLeBusParticipantThis reply has been marked as private.November 6, 2019 at 7:26 am #232440loganMemberHello, you do not need to add this code anywhere, course directory(archieve) has the corses and respective take this course button. 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();
} this code was to add the course button in the single course page. refer: http://prntscr.com/pt32r0 if you are using wrong action hook then it will create a conflict which is what you are facing.November 6, 2019 at 8:16 am #232450StudioLeBusParticipantHello, thanks for your answer I don't think yiou understood what I try... If I remove the code there is no take the course button in the archive... have a look here now https://www.learngypsyjazz.com/courses/ no take the course button.. and if I add the code there is the take the course button, but for lesson already bought there is 2 times continue course like this https://prnt.sc/pslx5i ... Also the settings for the block desing in the admin is not working https://prnt.sc/pslzfa this is why I'm facing this problem I think... Any ideas?? thanksNovember 7, 2019 at 7:12 am #232579loganMemberHello, because that is not available in the template: http://prntscr.com/ptknoh user has to click the title of the course then he will be redirected to the single course page where they can check the course descriptions, what you are offering in curriculum section, what are the features. when he has all the satisfactory details he can hit the take this course page then he will be redirected to the checkout page.
USE THIS CSS IN YOUR WP-ADMIN >> APPEARANCE >> CUSTOMIZE >> CUSTOM CSS. form#course-directory-form div#course-dir-list .item input.course_button.full.button[value="CONTINUE COURSE"], form#course-directory-form div#course-dir-list .item input.course_button.full.button[value="START COURSE"]{display: none;} it will hide the extra buttons.November 7, 2019 at 6:06 pm #232673StudioLeBusParticipantHello thanks very much I managed to do what I wanted :)November 8, 2019 at 6:46 am #232715loganMemberDear Friend,
Glad you’re enjoying the theme & support – thanks for using it! 🙂
Please write your review. I would really appreciate that! Here: https://themeforest.net/item/wplms-learning-management-system/reviews/6780226
If I can be of assistance, please do not hesitate to contact me again.
Closing this topic.
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
- The topic ‘take the course button’ is closed to new replies.