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

Change read more in wordpress theme

To add read more text in wordpress theme without plugin, use this below small code in theme functions.php file. function bn_excerpt_more() { function custom_excerpt_more($more) { return ‘<span class=”continue-reading”> <a href=”‘ . get_permalink($post->ID) . ‘” rel=”nofollow”>Read more…..</a></span>’; } add_filter(‘excerpt_more’, ‘custom_excerpt_more’); } add_action(‘after_setup_theme’, ‘bn_excerpt_more’); This code is working with latest version of WordPress.

Commonly used header code in wordpress theme

In wordpress theme, header.php file plays a vital role for theme developer. Every web developer who develop WordPress Theme they must use some common wordpress header codes in header.php file which are come from wordpress.org website. This header.php file contains all the necessity information such as document type, title, Meta tag and many more. In… Read more Commonly used header code in wordpress theme