Can You Offer a Little Help With Site Category Dropdown CSS?

I am attaching a screenshot. I would like #1 to look more like #2 - transparent background instead of surrounded by white. The white is caused by the widget class - but as it controls the appearance of all the widgets in the sidebars, I would prefer not altering it.

Could you offer any suggestions on how to rid your widget of the white background surrounding it?

Thanks
Arizona

  • Michael Bissett
    • Recruit

    Hey @Arizona, hope you're doing well this evening! :slight_smile:

    You can resolve this by inserting the following code into your site as an mu-plugin:

    <?php
    // Add items to the header!
    function wpmu_global_css() {
    	echo "<style>
    		.Bcat_WidgetCategorySites {
    			background: transparent;
    		}
                      </style>";
    }
    add_filter('wp_head', 'wpmu_global_css');

    This way, the code will be applied to all sites on your network. :slight_smile:

    Hope this helps!

    Kind Regards,
    Michael

  • Arizona Lowe
    • Site Builder, Child of Zeus

    Ah! If everything in life - and WordPress multi-site - could be so easy I would be able to concentrate on advertising and content generation.

    Thank you Michael for providing a first-time work fix that was very well explained and documented.

    Cheers! <toasting with a glass of red wine!> I can now relax till tomorrow :smiley: I hope your evening is going as well as your help made mine.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.