logo

$5
Gallery Settings section removing

Hi,
When you add 2 or more images, you are starting to see gallery settings section on gallery tab.
http://en.support.files.wordpress.com/2009/09/gallery-settings.gif

Normally its in wp-admin/includes/media.php 1704 line;
<div id="gallery-settings" style="display:none;">
<div class="title"><?php _e('Gallery Settings'); ?></div>
<table id="basic" class="describe"><tbody>
<tr>
<th scope="row" class="label">

When adding 2 or more images, wordpress removing display:none; codes from this place i think, but i couldnt find how its removing those codes.

I want to remove this section always, even have 2 or more images. How can i do that? How can i add or remove html codes in wordpress panel like style="display:none;" section

Ünsal Korkmaz | 02/18/10 at 12:03am | Edit


(2) Possible Answers Submitted...

  • avatar
    Last edited:
    02/21/10
    9:43pm
    Utkarsh Kukreti says:

    Add this code to your functions.php

    function hide_gallery_settings()
    {
    echo '<style type="text/css">#gallery-settings{display:none;}</style>';
    }

    add_action('admin_print_styles', 'hide_gallery_settings');

  • avatar
    Last edited:
    02/21/10
    9:43pm
    Michael Fields says:

    add_action( 'admin_head_media_upload_gallery_form', 'mfields_remove_gallery_setting_div' );
    if( !function_exists( 'mfields_remove_gallery_setting_div' ) ) {
    function mfields_remove_gallery_setting_div() {
    print <<<EOF
    <style type="text/css">
    #gallery-settings *{
    display:none;
    }
    </style>
    EOF;
    }
    }

This question has expired.





Current status of this question: Completed