Remove Tag from theme support

You can do it with something like this: add_action( ‘init’, ‘wpse48017_remove_tags’ ); function wpse48017_remove_tags() { global $wp_taxonomies; $tax = ‘post_tag’; // this may be wrong, I never remember the names on the defaults if( taxonomy_exists( $tax ) ) unset( $wp_taxonomies[$tax] ); } There was a move to get a function implemented but that hasn’t hit … Read more

How to add default images for custom backgrounds?

if you are asking default background image for add_theme_support( ‘custom-background’); then it can be set using ‘default-image’ => get_template_directory_uri() . ‘/images/pattern.png’, complete code will look like below. $args = array( ‘default-color’ => ‘f0f0f0’, ‘default-repeat’ => ‘fixed’, ‘default-image’ => get_template_directory_uri() . ‘/assets/images/pattern.png’, ); add_theme_support( ‘custom-background’, $args );

Editing the custom background CSS

Yes, that is possible. Take a look at the codex and you will see that you can pass arguments with add_theme_support( ‘custom-background’). One of them is the callback function that generates the <style> tags: _custom_background_cb. You can pass your own function as an argument to add_theme_support. Here is the code of the original function (retrieved … Read more

Why does `add_theme_support( ‘html5’, array( ‘comment-form’ )` disable client side validation?

No, it is not a bug. This is how core handles it. If you look into /wp-includes/comment-template.php, you’ll notice, that the only difference in <form> element, is novalidate attribute added, when current_theme_supports( ‘html5’, ‘comment-form’ ) is true. But there are other html elements within comment form, which are affected by theme’s choice of html5 support. … Read more