Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › How to hide these 3 panels
- This topic has 11 replies, 2 voices, and was last updated 3 years ago by Diana.
Viewing 12 posts - 1 through 12 (of 12 total)
-
AuthorPosts
-
March 9, 2021 at 12:41 am #344666danibuuParticipantHello, How to hide these 3 panels ? https://prnt.sc/10gjgqqMarch 9, 2021 at 5:09 am #344694DianaParticipantHide it for everyone? or for specific user roles?March 10, 2021 at 12:52 am #344940danibuuParticipantHi Diana, Hide for students and instructors.March 10, 2021 at 7:22 am #345005DianaParticipantAdd 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 } }
March 10, 2021 at 11:01 pm #345192danibuuParticipantHello, 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/March 11, 2021 at 6:05 am #345224DianaParticipantYes 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 FTPMarch 26, 2021 at 12:16 am #348567danibuuParticipantHello, 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} thrownMarch 26, 2021 at 5:42 am #348600DianaParticipantThere is a typo mistake in the above code
Please add this code via FTP and then checkadd_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 } }
April 15, 2021 at 12:23 am #352494danibuuParticipantThis reply has been marked as private.April 15, 2021 at 10:38 am #352613DianaParticipantThis reply has been marked as private.April 16, 2021 at 12:22 am #352748danibuuParticipantIs it possible to hide with CSS then for everyone?April 16, 2021 at 10:06 am #352854DianaParticipantThis CSS will work for you to hide it for everyone
Paste in wp-admin > Appearance > Customize > Custom CSS.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;}
-
AuthorPosts
Viewing 12 posts - 1 through 12 (of 12 total)
- The topic ‘How to hide these 3 panels’ is closed to new replies.