Last active
December 6, 2018 14:01
-
-
Save bogdan-mainwp/ee1f4677f1c6822fb0ea3348931861f5 to your computer and use it in GitHub Desktop.
Custom snippet for making the Select Sites box sticky
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin | |
// Download MainWP Customisations here: https://github.com/mainwp/mainwp-customisations | |
// More about the plugin: https://mainwp.com/mainwp-customisations/ | |
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