Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DeBAAT

    (@debaat)

    I fixed it using the tips described.
    However, I copied the code from the WordPress css itself being:

    /* Fix display attachment-filters */
    .media-frame select.attachment-filters {
        max-width: calc(48% - 12px) !important;
    }

    This because in my screen, I only see two boxes, including the one from MCM.
    What are the conditions when there are more boxes shown?

    Thread Starter net

    (@krstarica)

    Probably the issue has something to do with non-English installations, because combo boxes are wider:

    View post on imgur.com


    vs.

    View post on imgur.com

    Here is the latest patch:

    Change in wp-content/plugins/wp-media-category-management/css/admin.css from:

    
    .media-frame select.attachment-filters {
        max-width: calc(48% - 12px) !important;
    }
    

    to:

    
    .media-frame select.attachment-filters {
        max-width: 30% !important;
    }
    

    Then update wp-content/plugins/wp-media-category-management/include/class-wp-mcm-plugin.php from:

    
    wp_enqueue_style( $this->plugin_slug .'-admin-styles', WP_MCM_URL . '/css/admin.css', array(), WP_MCM_VERSION . '.1');
    

    to:

    
    wp_enqueue_style( $this->plugin_slug .'-admin-styles', WP_MCM_URL . '/css/admin.css', array(), WP_MCM_VERSION . '.2' );`
    

    Note, in official code we should revert back to:

    
    wp_enqueue_style( $this->plugin_slug .'-admin-styles', WP_MCM_URL . '/css/admin.css', array(), WP_MCM_VERSION );`
    

    because this change is used just to load patched CSS.

    Thread Starter net

    (@krstarica)

    Patch for the version 1.9.8.1 is below.

    In wp-content/plugins/wp-media-category-management/css/admin.css:
    Delete:

    
    .media-frame select.attachment-filters {
        /* max-width: calc(48% - 12px) !important; */
    }
    

    Add:

    
    .media-modal-content .media-frame select.attachment-filters {
    	max-width: calc(32% - 12px);
    }
    

    Update wp-content/plugins/wp-media-category-management/include/class-wp-mcm-plugin.php from:

    
    wp_enqueue_style( $this->plugin_slug .'-admin-styles', WP_MCM_URL . '/css/admin.css', array(), WP_MCM_VERSION . '.1');
    

    to:

    
    wp_enqueue_style( $this->plugin_slug .'-admin-styles', WP_MCM_URL . '/css/admin.css', array(), WP_MCM_VERSION . '.2' );

    `

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘MCM filter drop-down box missing’ is closed to new replies.