Hi,
Website : https://adekoite-dev.fr/appli/
1. I need to change the "Back to Course" button link to the student's dashboard instead of the course page.I've tried this code but that doesn't work :
add_action('wplms_course_start_after_timeline','redirect_back_to_course_button',999);
function redirect_back_to_course_button(){
if(is_user_logged_in()){
global $current_user;
$login_page='https://adekoite-dev.fr/appli/membres/'. $current_user->user_login.'/dashboard/';
echo '<button name="back_to_course" class="back_to_course unit_button full button">BACK TO COURSE</button>';
}
}
2. I also need to add my website logo on every course on the top right hand corner that links directly to the homepage. Can you please help me to do that ? <b>https://prnt.sc/kvbzqm</b>Thanks a lot for your help