Hide Some Fields of Post Submit box

Add this code on function.php function wpseNoVisibility() { echo ‘<style>div#visibility.misc-pub-section.misc-pub-visibility{display:none}</style>’; } function wpseCurrentScreenAction($current_screen) { if (‘page’ == $current_screen->post_type && ‘post’ == $current_screen->base) { add_action(‘admin_head’, ‘wpseNoVisibility’); } } add_action(‘current_screen’, ‘wpseCurrentScreenAction’); Source – Original Source

padding not working

<span> tags is a inline element and inline elements don’t react well with padding. You can target the h1 – h6 as you said, but if you want to target the <span> you will need to add display: inline-block; as well for it to work with padding. Also, this has nothing to do with WordPress … Read more

Override All CSS with Custom CSS on a Page by Page Basis

You can replace the page type condition to match your page by ID or slug instead. https://www.webperftools.com/blog/how-to-remove-unused-css-in-wordpress/ function enqueue_pure_styles() { $suffix = ”; if (is_front_page()) { $suffix = ‘.front-page’; } else if (is_page()) { $suffix = ‘.pages’; } else if (is_single()) { $suffix = ‘.blog’; } else if (is_archive()) { $suffix = ‘.archives’; } wp_enqueue_style(‘pure-styles’, … Read more