Support » Plugin: Responsive Lightbox & Gallery » Hide Gallery functionality

  • ChrisL


    Is there a way to easily hide all gallery functionality for this plugin? I would like to use a different gallery plugin and it is confusing to have two ‘Galleries’ items in the admin menu.



Viewing 2 replies - 1 through 2 (of 2 total)
  • Finkkster


    I would like to know this as well. It’s confusing for clients that already have established galleries.
    Same with ‘Light Box’.

    Don’t just force your stuff on users without an opt-out.



    • This reply was modified 1 year ago by  Finkkster.

    This can be done by adding the following to functions.php

    /* Hide the DFactory gallery stuff */
    function remove_menus(){
      remove_menu_page( 'edit.php?post_type=rl_gallery' );
    add_action( 'admin_menu', 'remove_menus' );
    function my_custom_admin_head() {
    	echo '<style>
    		#rl-insert-modal-gallery-button {display: none !important;}
    add_action( 'admin_head', 'my_custom_admin_head' );

    And i agree it encroaches on the default WordPress gallery functionality a bit.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Gallery functionality’ is closed to new replies.