Improving plugins's popup in admin area
-
To slightly improve user interface elements visible after clicking “ShortCode UI” button in WP editor (admin area), the below piece of code can be applied to functions.php in your theme’s directory.
The below code will be added to admin’s source code and it improves displaying drop-downs in a popup when adding shortcodes via “ShortCode UI” button. Better padding of popup and drop-down in new lines for better UX. Modify as you wish, you can previews popup’s CSS with DevelopersTools in Chrome.
(your theme’s function.php)
function my_custom_fonts() {
echo ‘<style>
#SimpleBox {
overflow-y: Auto;
overflow-x: hidden;
max-height: 560px;
padding: 60px 30px;
-moz-border-radius: 0;
border-radius: 0;
}
.sc_category:after {
content:””;
display:table;
clear:both;
}
.sc_selector span {
display: block;
margin: 1em 0;
}
.sc_category,
.sc_names {
width: 85% !important;
}
</style>’;
}
- The topic ‘Improving plugins's popup in admin area’ is closed to new replies.