CSS properties in textarea in the Customizer

As it happens, I was literally just doing some stuff with the customizer. You can use the following class to get what you need.. WP_Customize_Code_Editor_Control I’ll include it in the control ready to go. $wp_customize->add_control( new WP_Customize_Code_Editor_Control( $wp_customize, ‘favorite_html’, array( ‘label’ => ‘Theme CSS’, ‘description’ => ”, ‘code_type’ => ‘text/css’, ‘section’ => ‘section_id’, ‘settings’ => … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)