Snippet: Hiding Image Upload In Messages

Note: this is the custom code change and as such is not officially supported by PeepSo team. You should create the full backup of your site before applying custom codes.

Overview #

This snippet will allow you to hide the option to upload images in the chat as shown in the screenshot bellow;

1 2 3 4 5 6 7
/*hide image upload in messages*/
#postbox-message .ps-icon.gcis.gci-camera:before {
  display: none;
}
#postbox-message .ps-dropdown__menu .ps-postbox__type:nth-child(2) {
  display: none;
}

How To Apply This Snippet? #

  • Method 1 (Manually) – Open the WordPress Admin Panel and navigate to “Appearance -> Customize”. Once WordPress Customizer is open, expand the Custom CSS panel and copy the snippet to it.
  • Method 2 (Trough plugin) – NOT SUPPORTED! Since this is a CSS change, you can’t use the plugins like Code Snippets to add it. It must be installed manually.
What are your feelings
Updated on Oct 3, 2023