Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Problem with control panel #3998
    Charles
    Participant

    All: I found a word-around for this exact problem (CSS conflict with Gallery Bank Pro) by looking for the conflicting CSS with Firebug and installing more specific CSS. I understand the author’s point-of-view that it’s not his fault the other guys don’t play nice. But, I’m hoping he will consider using more specific CSS to work around other people poor coding practices.

    I haven’t tested this fix in all cases yet. I’m just throwing this out here as it’s working for me (for now anyway). I put this in the functions.php file of the child-theme I’m using.

    # Custom CSS for Admin area
    # https://wordpress.org/support/topic/how-do-i-add-css-to-admin-backend-to-displaynone-specific-menu-items
    
    function custom_css() {
        echo '<style type="text/css">
    
    /* Specific CSS for GMedia as CSS from Gallery Bank conflicts */
    .modal.fade.gmedia-modal.in {
        background-color: transparent;
        background-position: 0% 0%;
        background-size: auto;
        background-repeat: repeat;
        background-origin: padding-box;
        background-clip: border-box;
        background-attachment: scroll;
        background-image: none;
        margin: 0px;
        width: auto;
    
        border: medium none; 
        box-shadow: none;
        top: 32px;
    }
    
        </style>';
    }
    
    add_action('admin_head', 'custom_css');
Viewing 1 post (of 1 total)