Change URL Button in course

Home Forums Legacy Support Support queries Styling issues RTL Change URL Button in course

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #204883
    dav80
    Spectator
    Hello, Is it possible to change the url of the button present in course to the "courses" url ?   See picture. Thank's
    #205007
    maximus
    Member
    Hi dav80, Please share your site URL with admin credentials to fix this issue. Please mark "set as private reply" while sharing your credentials.  
    #205056
    dav80
    Spectator
    This reply has been marked as private.
    #205128
    maximus
    Member
    Hi dav80, Please add this code in wp-admin->WPLMS->Footer->Google Analytics Code->and save <script> $(document).ready(function(){   $(".page-template .container-fluid .course_pursue_panel .course_pursue_panel_content .more_course .unit_button").attr("href", "https://lms.crmdvp.fr/all-courses/");   }); </script> refer:http://prntscr.com/ndiod5 If you face any trouble after this please let me know.
    #205173
    dav80
    Spectator
    This reply has been marked as private.
    #205223
    dav80
    Spectator
    This reply has been marked as private.
    #205224
    dav80
    Spectator
    This reply has been marked as private.
    #205290
    logan
    Member
    Hello, No that cant be happen because these links are generated dynamically which cant be identify by the custom javascript. "https://$SITEURL/$USER/course/ : here $USER is generated dynamically according to the user's username. you can add a course tab in dashboard so that user can redirect to the my courses from there. like this Refer: https://cl.ly/cd512c
    #205353
    dav80
    Spectator
    Hello,   Thank you for the reply. I understand that is not possible with javascript. But is it possible to chage this route from php code directly ?
    #205457
    logan
    Member
    Hello, you could either add a extra button. here: https://cl.ly/8289f1 Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php  add_action('wplms_course_start_after_timeline',function (){   $home_url = get_home_url();   $username = bp_core_get_username(bp_loggedin_user_id());   $location = $home_url.'/members/'.$username.'/course/';   echo '<a class="button full backtocourse" href="'.$location.'">'._x('BACK TO MYCOURSES','','dsf').'</a>'; },10);
    #205875
    dav80
    Spectator
    Thank a lot ! It's working like a charm. And now, how can i disable the "courses" button   Thanks
    #205989
    logan
    Member
    Hello, Use this css to hide that button. Please goto wp-admin >> appearance >> customize >> custom css >> paste & save. .bp-user div#subnav li#course-personal-li a#course { display: none !important;} Refer: https://cl.ly/368dc7
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Change URL Button in course’ is closed to new replies.