Hi,
I was able to check the documentation, but i cannot find this
code inside wp-content/plugins/tutor/templates/dashboard/enrolled-courses.php.
$custom_url = home_url($post->post_type.’/’.$post->post_name)
I need to replace $custom_url with $lesson_url
Thank you!
Best Regards,
Hristijan Velevski
Hi @hristijanv123
File: wp-content/plugins/tutor/templates/dashboard/enrolled-courses.php
Replace lines 85-87 with the following code:
<a href="<?php echo tutor_utils()->get_course_first_lesson( get_the_ID() ); ?>"><?php the_title(); ?></a>
Thank you!
Best Regards
Hi,
I have applied the code inside wp-content/plugins/tutor/templates/dashboard/enrolled-courses.php, but i still go to /courses instead of directly to /lesson page.
Best Regards
Hi @hristijanv123
After replacing the code, when student clicks on the “Start Learning” button from the Tutor Dashboard > Enrolled course, they should be redirected to the lesson page instead of the course page. http://prntscr.com/J4Lpsacl1FO2
Could you please send an email to support at themeum dot com? We will take a closer look at your issue.
Thank you!
Best Regards
@parag44 Is there any way to make this change without modifying core plugin files?
Hi @tubescreamer
Sorry, for now, there is no way. This is a template file, and you can safely edit it.
Anyway, I will add this as a feature request.
Thank you!
Best Regards
@parag44 I know, I just meant if it’s possible through functions.php or copying the file to my child theme etc. Not necessarily via an option in the front end.
Hi @tubescreamer
Yes. You can override the file to your child theme and modify it there.
Thank you!
Best Regards.