Okay
  Public Ticket #3118162
translate strings in WPA
Closed

Comments

  •  12
    MeesterGijs started the conversation

    Hello,

    I can't find these strings in the suspected plugins, where can I translate these?

    UPDATE: Ah, saw the video. Had to refresh buddypress pages. Sorry. But can delete items here? Like the item ACHIEVEMENTS for example? How would I do that?

    Gijs

  • [deleted] replied

    add this code in your wplms-customizer.php file in wplms customizer plugin : 

    function bp_remove_nav_tabs() {

    bp_core_remove_subnav_item('course', BP_COURSE_RESULTS_SLUG );//
    bp_core_remove_subnav_item('course', 'quiz_results' );//for my quizzes
    bp_core_remove_subnav_item('course', BP_COURSE_STATS_SLUG );//for achievements
    bp_core_remove_subnav_item('course', 'notes_reviews' );//for reviews

    bp_core_remove_subnav_item('course', 'assignment_results' );//for assignments

    }

    add_action( 'bp_setup_nav', 'bp_remove_nav_tabs', 15 );

  •  12
    MeesterGijs replied

    Sorry, I forget to add a picture. I want to delete this specific menu items: https://imgur.com/a/W7vB6NZ

    What code do I need for that? Everything from underneath?

    function bp_remove_nav_tabs() {

    bp_core_remove_subnav_item('course', BP_COURSE_RESULTS_SLUG );// bp_core_remove_subnav_item('course', 'quiz_results' );//for my quizzes bp_core_remove_subnav_item('course', BP_COURSE_STATS_SLUG );//for achievements bp_core_remove_subnav_item('course', 'notes_reviews' );//for reviews

    bp_core_remove_subnav_item('course', 'assignment_results' );//for assignments

    }

    add_action( 'bp_setup_nav', 'bp_remove_nav_tabs', 15 );


  • [deleted] replied

    add this code in your wplms-customizer.php file in wplms customizer plugin : 

    function bp_remove_nav_tabs() {

    bp_core_remove_subnav_item('course', BP_COURSE_RESULTS_SLUG );// bp_core_remove_subnav_item('course', 'quiz_results' );//for my quizzes bp_core_remove_subnav_item('course', 'notes_reviews' );//for reviews

    bp_core_remove_subnav_item('course', 'assignment_results' );//for assignments

    }

    add_action( 'bp_setup_nav', 'bp_remove_nav_tabs', 15 );


  •  12
    MeesterGijs replied

    Dear Alex,

    Have a look here, I added your code without changing anything. It didn't work... Even after emptying Kinsta cache.

    Any idea why?

  • [deleted] replied

    Please goto wp-admin -> vibebp-> settings -> buddypress-> click refresh buddypress navigation button .

  •  12
    MeesterGijs replied

    Dear Alex, 

    I did that. Checked incognito... Still didn't delete these three menu items: https://imgur.com/a/bIN3Req

  •  12
    MeesterGijs replied

    Great! I see it too, now. But, I only wanted these three gone, how to get menu item ACHIEVEMENTS back?

  • [deleted] replied

    Edited the code for that please check .

  •  12
    MeesterGijs replied

    Yes, perfect!

    Thanks, Alex.

    We can close another one :)