Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Custom snippet for making the Select Sites box sticky
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin
// Download MainWP Customisations here:
// More about the plugin:
add_action('admin_head', 'sticky_sidebar');
function sticky_sidebar() {
echo '<style>.mainwp_select_sites_box { position: -webkit-sticky; position: sticky; top: 0; }</style>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.