• 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.

    Thanks,

    Chris

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

    (@crazybassplayer)

    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.

    Tacky.

    Mark

    • This reply was modified 6 years, 4 months 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;}
    		</style>';
    }
    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.