Fixing WordPress Admin Bar not showing up Problem

The Wordpress Admin Bar is a floating bar that appears on every page of your site when you are logged in.It helps you to easily navigate in wordpress one option to another. By wordpress default theme admin bar look like: By any chance if you can’t see this wordpress admin bar in your website, then […]

WordPress Custom Page Template Development

Developing WordPress Custom Page Template is similar to develop a default wordpress page template. You just need to add a line code inside the comment section. To Develop Wordpress Custom Page Template follow this: 1. Create a new empty php file and name it whatever you want, 2. Add this below code inside the newly […]

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 […]

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” : “”) . “://”, false, null, TRUE); wp_enqueue_script(‘jquery’); } OR Simply copy and paste this below code in your theme footer.php […]

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 […]

Add header image in wordpress theme

As like as Wordpress Background Image, Wordpress header image feature also added from wordpress version 3.4. Through this functionality a user can easily add and change header image from wordpress dashboard account without touching any core files of wordpress theme. i) To add this cool feature in any wordpress custom theme, firstly add this below […]

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 […]

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() […]

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 ); // […]

WordPress Category or Post ID

To find Category or Post ID in Wordpress theme, follow this steps: Finding Post ID in Wordpress 1. Login to your wordpress account 2. From dashboard, navigate to Posts -> All Posts 3. Select any post and click on “Edit” 4. In web browser address bar, you will find the post id. 5. In above […]