Remove sections and customize

Home Forums Legacy Support Support queries How-to & Troubleshooting Remove sections and customize

Viewing 15 posts - 16 through 30 (of 50 total)
  • Author
    Posts
  • #376995
    smoothcontent
    Spectator
    Try again please.
    #377099
    Veronica
    Moderator
    checking
    #377101
    Veronica
    Moderator
    hi use this in custom CSS section .instructor_tabs span:nth-child(2),.instructor_tabs span:nth-child(4),.instructor_tabs span:nth-child(5), .instructor_tabs span:nth-child(6) , .vibebp_sidebars .vibebp_left_sidebar_wrapper .vibebp_left_sidebar a.button.is-primary.new_mail { display:none; }
    #377345
    smoothcontent
    Spectator
    But with that code new message button is also gone.
    #377359
    Veronica
    Moderator
    hi can you please point out exactly where?
    #377404
    smoothcontent
    Spectator
    This reply has been marked as private.
    #377492
    Veronica
    Moderator
    hi can you please share instructor and student details or give us permission to create new one so we can replicate the same on your site
    #377555
    smoothcontent
    Spectator
    This reply has been marked as private.
    #377693
    Veronica
    Moderator
    hi yes the CSS custom code will conflict here we need to for the wordpress hooks for this please confirm do you want to hide this for instructor or for all?
    #377883
    smoothcontent
    Spectator
    This reply has been marked as private.
    #377885
    smoothcontent
    Spectator
    This reply has been marked as private.
    #377886
    smoothcontent
    Spectator
    This reply has been marked as private.
    #377898
    Veronica
    Moderator
    ok thanks for all the details i am working on code providing in sometime
    #377901
    Veronica
    Moderator
    hi for student refer: https://ibb.co/2K37Gqp use this code:
    add_filter('wplms_get_student_mmy_course_tabs',function($tabs,$body,$req){
    	        $user = apply_filters('vibebp_api_get_user_from_token','',$body['token']);
    	        if(!user_can($user->id,'edit_posts')){
    	        	unset($tabs['announcementsnews']);
    unset($tabs['qna']);
    unset($tabs['notes']);
    	        }
    	        
    			return $tabs;
    		},10,3);
    #377905
    Veronica
    Moderator
    hi for instructor use this code:
      add_filter('bp_course_api_get_instructor_tabs',function($tabs,$course_id,$user_id=null){
      $t = [];
      foreach($tabs as $k => $tab){
        if(!($tab['key']=='news' || $tab['key']=='qna' || $tab['key']=='activity')){
          $t[] = $tab;
        }
      }
    
      return $t;
    },10,3);
Viewing 15 posts - 16 through 30 (of 50 total)
  • The topic ‘Remove sections and customize’ is closed to new replies.