Remove Unnecessary WordPress Dashboard Items

To disable unnecessary wordpress dashboard items in admin section, add this below code in theme functions.php file: add_action(‘wp_dashboard_setup’, ‘my_custom_dashboard_widgets’); function my_custom_dashboard_widgets() { global $wp_meta_boxes; //Right Now – Comments, Posts, Pages at a glance unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_right_now’]); //Incoming Links unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_incoming_links’]); //Plugins – Popular, New and Recently updated WordPress Plugins unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_plugins’]); //Wordpress Development Blog Feed unset($wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_primary’]); //Other WordPress News… Read more Remove Unnecessary WordPress Dashboard Items

Adding jQuery from Google CDN

To add WordPress jQuery from Google Server in your website add this below code in functions.php file: if (!is_admin()) add_action(“wp_enqueue_scripts”, “my_jquery_enqueue”, 11); function my_jquery_enqueue() { wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, “http” . ($_SERVER[‘SERVER_PORT’] == 443 ? “s” : “”) . “://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js”, false, null, TRUE); wp_enqueue_script(‘jquery’); } OR Simply copy and paste this below code in your theme footer.php… Read more Adding jQuery from Google CDN

Change excerpt length in wordpress

By default wordpress excerpt words length is 55 words. If you want to limit wordpress excerpt word length from 55 words to something else then add this below code in your theme Functions.php file. function custom_excerpt_length( $length ) { return 20; } add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 ); Change the number 20 to something as your… Read more Change excerpt length in wordpress

Add background header image in wordpress theme

Adding WordPress Custom Background Image is a new functionality that has been added since wordpress version 3.4. With this feature a wordpress user can easily add any images for a website background and colour without knowing any coding standard. To add WordPress Custom Background Image feature in any WordPress Theme, simply add this below code in… Read more Add background header image in wordpress theme

Multiple Post Thumbnail Images in wordpress

Adding WordPress Multiple Post Thumbnail Image is similar to add WordPress Single Post Thumbnail Image. You just need to add an extra line of code to do this in theme functions.php file. For adding wordpress multiple post thumbnail image in your theme, add this below code in functions.php file: add_action( ‘after_setup_theme’, ‘bn_theme_support’ ); function bn_theme_support()… Read more Multiple Post Thumbnail Images in wordpress

Single post thumbnail image in wordpress

For adding WordPress Post Thumbnail Image to every post, you need to first edit the wordpress theme functions.php file and add this below code: add_action( ‘after_setup_theme’, ‘bn_theme_support’ ); function bn_theme_support() { add_theme_support( ‘post-thumbnails’ ); // This line of code will add featured image option in post writting area. add_image_size( ‘post-thumb’, 150, 150, true ); //… Read more Single post thumbnail image in wordpress