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

Hide Specific Category Posts at Home page

To hide specific category posts at home page simply place this below single line code before the main loop start at home page. <?php if ( is_home() ) {query_posts( ‘cat=-1’ ); } ?> Complete loop with this above code will look like: <?php if ( is_home() ) {query_posts( ‘cat=-1’ ); } ?> <?php if ( have_posts() […]

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

Custom login page in wordpress theme

To develop a Wordpress custom login page without plugin follow this steps: Part One: Create a new folder inside the active wordpress theme folder and name it “login” Create a new css file inside login folder and name it login.css Inside this login.css file add this below code and apply the css rule to fulfil […]

Helpful WordPress Theme Development tools

A list of Wordpress Theme Development kits that need a web developer to develop a new or existing wordpress theme: WebMatrix WebMatrix is free web development tools from Microsoft Corporation and helps you to install and configure more than 76 free open source software including WordPress, Joomla, PHPBB and many more in Local Computer. Wordpress […]