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.
Question
November 9, 2015 at 12:36 pm #51129@anas-aljefryHello,
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
November 9, 2015 at 1:04 pm #51134@payendaHi @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’ );
}November 9, 2015 at 1:23 pm #51136@anas-aljefryHi @payenda
Thanks buddy. Your comment was very helpful. I went back to the translation file and removed the strings.
BR
November 9, 2015 at 11:44 pm #51168@
AnonymousThanks @payenda
Regards
Varun Dubey
- The question ‘Courses on profile page & menu not working’ is closed to new replies.