Hide some blocks from users

Home Forums Legacy Support Support queries How-to & Troubleshooting Hide some blocks from users

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #209550
    Zoha
    Participant
    Hello Dear Team, Here some small issues, please help me to customizing. How to hide "category" in module edit page https://prnt.sc/npnnmr How to hide "upload zip" and "vibe shortcodes" in module edit page (it's no need to Instructors) https://paste.pics/5KET5 How to hide from Instructors "Create course" in all-course page. (disable to create new courses by instructors - only edit allow for instructors) When I click to "Courses" on popup dashboard site redirect me to 404. How to fix? https://paste.pics/5KFPK
    #209730
    logan
    Member
    Hello, 1) To hide unit category please try adding this given css in your wp-admin -> appearance -> customize -> custom css :

    .element_overlay_unit .list-group-item:not(.accordion_trigger):nth-child(3){display:none !important;}

    to hide add new from category then

    Please try adding this custom code in your wplms-customizer.php file in wplms customizer plugin :

    add_filter('wplms_front_end_new_tax_cap',function($x){

      if(is_user_logged_in() && !current_user_can('manage_options'))

        $x = false;

      return $x;

    });

    2) Please try adding this given code in your wp-admin -> appearance -> customize -> custom css :

    li.vibe_vibe_course_message a.thickbox.button[href*='tab=upload'],li.vibe_vibe_course_instructions a.thickbox.button[href*='tab=upload'],ul.create_course li.vibe_post_content a.thickbox.button[href*='tab=upload']{display:none;} 

    3) goto wp-admin >> lms >> setting >> disable this checkbox. refer: http://prntscr.com/nq6mik 4) resave permalinks that will be solved.
    #209835
    Zoha
    Participant
    This reply has been marked as private.
    #210085
    logan
    Member
    This reply has been marked as private.
    #210182
    Zoha
    Participant
    This reply has been marked as private.
    #210253
    logan
    Member
    Hey, refer: https://cl.ly/a5fb0e always make sure you are doing it in the right manner. refer now: https://cl.ly/d3c728 for hiding course button from all courses page: Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php  Or in Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel: add_action('init',function (){ $front = WPLMS_Front_End::instance(); remove_all_actions('wplms_be_instructor_button');   });
    #210379
    Zoha
    Participant
    Thank you so much! 3/4 solved completely. and remain last issue
    When I click to "Courses" on popup dashboard site redirect me to 404. How to fix? https://paste.pics/5KFPK
    #210565
    logan
    Member
    Sometimes a wicked code creates a problem. here it is: http://prntscr.com/nsoi7e remove or comment out the last line of code, then resave the permalinks. it will work.
    #210613
    Zoha
    Participant
    Shooted! Thank you so much!
    #210721
    logan
    Member
    #zohan Glad to know your issue is resolved. Cheers ! If I can be of assistance, please do not hesitate to contact me again. Closing this topic. Best regards:)
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Hide some blocks from users’ is closed to new replies.