BuddyBoss Home – Web Support Forums Solutions Social Learner Courses on profile page & menu not working

  • This topic has 3 replies, 3 contibutors, and was last updated 9 years ago by Anonymous.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #51129
    @anas-aljefry

    Hello,

    I’m having a trouble with the course link on the profile link and on the menu. The problem occur when the website language is in Arabic.

    The URL link changes to “/members/anas159/الدورات/” instead of “/members/guest/courses/” and redirected to 404 page.

    The problem also exist in the dropdown menu of the profile image.

    BR

    Answers

    #51134
    @payenda

    Hi @anas-aljefry
    I think you have translated courses and my courses in buddypress for learndash or for sensie functions.php
    If you translate courses and my courses but do not translate courses and my courses slugs, this problem maybe solved.
    something like this:

    /**
    * courses name can be changed from here
    * @return string
    */
    function bp_learndash_profile_courses_name()
    {
    return __( ‘آموزش’, ‘buddypress-learndash’ );
    }

    /**
    * courses slug can be changed from here
    * @return string
    */
    function bp_learndash_profile_courses_slug()
    {
    return __( ‘courses’, ‘buddypress-learndash’ );
    }

    /**
    * My courses name can be changed from here
    * @return string
    */
    function bp_learndash_profile_my_courses_name()
    {
    return __( ‘دوره های آموزشی من’, ‘buddypress-learndash’ );
    }

    /**
    * My courses slug can be changed from here
    * @return string
    */
    function bp_learndash_profile_my_courses_slug()
    {
    return __( ‘my-courses’, ‘buddypress-learndash’ );
    }

    #51136
    @anas-aljefry

    Hi @payenda

    Thanks buddy. Your comment was very helpful. I went back to the translation file and removed the strings.

    BR

    #51168

    Anonymous
    @

    Thanks @payenda
    Regards
    Varun Dubey

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Courses on profile page & menu not working’ is closed to new replies.