How to hide these 3 panels

Home Forums Legacy Support Support queries How-to & Troubleshooting How to hide these 3 panels

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #344666
    danibuu
    Participant
    Hello, How to hide these 3 panels ? https://prnt.sc/10gjgqq
    #344694
    Diana
    Participant
    Hide it for everyone? or for specific user roles?
    #344940
    danibuu
    Participant
    Hi Diana, Hide for students and instructors.
    #345005
    Diana
    Participant
    Add this code in wp-admin > Plugins > Plugin-editor > select wplms customizer plugin > wplms-customizer.php
    
    add_ation('wp_head','hide_conditionally_profile_field_groups');
    function hide_conditionally_profile_field_groups(){
    	if(current_user_can('instructor') && current_user_can('student')){
    		?>
    	<style>
    	.vibebp_myprofile .edit_profile .portal:nth-child(2), .vibebp_myprofile .edit_profile .portal:nth-child(3), .vibebp_myprofile .edit_profile .portal:nth-child(4){display:none !important;}
    	</style>
    	<?php
    
    	}
    }
    
    #345192
    danibuu
    Participant
    Hello, I had problems with the plugin. Anything I change in it, the system error. Is the link for the plugin below? https://wplms.io/support/knowledge-base/wplms-customizer-plugin/
    #345224
    Diana
    Participant
    Yes this is the plugin link, or you can download it from here as well And it is a blank plugin, the code you will add here will reflect on your site. It is safe to add the code in this plugin because you'll never lose your custom code while updating plugins or theme It might be possible that your webhost restricted that nobody can change any code from plugin-editor section. Try adding the code via FTP
    #348567
    danibuu
    Participant
    Hello, See the error that appeared https://prnt.sc/10vj8x8 As mudanças no seu código PHP foram desfeitas devido a um erro na linha 39 do arquivo wp-content/plugins/wplms-customizer/wplms-customizer.php. Corrija e tente salvar novamente. Uncaught Error: Call to undefined function add_ation() in wp-content/plugins/wplms-customizer/wplms-customizer.php:39 Stack trace: #0 wp-settings.php(391): include_once() #1 wp-config.php(113): require_once('/opt/bitnami/ap...') #2 wp-load.php(37): require_once('/opt/bitnami/ap...') #3 wp-admin/admin.php(34): require_once('/opt/bitnami/ap...') #4 wp-admin/plugin-editor.php(10): require_once('/opt/bitnami/ap...') #5 {main} thrown
    #348600
    Diana
    Participant
    There is a typo mistake in the above code
    
    add_action('wp_head','hide_conditionally_profile_field_groups');
    function hide_conditionally_profile_field_groups(){
    	if(current_user_can('instructor') && current_user_can('student')){
    		?>
    	<style>
    	.vibebp_myprofile .edit_profile .portal:nth-child(2), .vibebp_myprofile .edit_profile .portal:nth-child(3), .vibebp_myprofile .edit_profile .portal:nth-child(4){display:none !important;}
    	</style>
    	<?php
    
    	}
    }
    
    Please add this code via FTP and then check
    #352494
    danibuu
    Participant
    This reply has been marked as private.
    #352613
    Diana
    Participant
    This reply has been marked as private.
    #352748
    danibuu
    Participant
    Is it possible to hide with CSS then for everyone?
    #352854
    Diana
    Participant
    This CSS will work for you to hide it for everyone
    
    .vibebp_myprofile .profile_settings .portal:nth-child(2),.vibebp_myprofile .profile_settings .portal:nth-child(3),.vibebp_myprofile .profile_settings .portal:nth-child(4){display:none !important;}
    
    Paste in wp-admin > Appearance > Customize > Custom CSS
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘How to hide these 3 panels’ is closed to new replies.