Do you want to add random header images to your WordPress blog? Most WordPress themes come with built-in support to add header images. These images can completely change your siteβs look and feel. In this article, we will show you to how to add random header images to your WordPress blog without writing any code.
Most free and premium WordPress themes come with custom header support. Custom headers in WordPress are a theme feature which allows WordPress themes to designate a header area showing an image.
Custom header is different than background image feature which allows you to set a cutom background image on your WordPress site.
Having said that letβs take a look at how to add random header images to your WordPress blog.
Method 1. Random Header Images Using WordPress Theme Customizer
This method is easier and is recommended for most WordPress users.
You need to head over to Appearance Β» Customize page to launch WordPress theme customizer.
Next, you need to click on βHeaderβ tab to expand it. The header option can also be labeled as header image or header media in your theme.
You will see your siteβs current header image, and any other header images available to use.
You need to click on the βAdd imageβ button to upload the images you want to use as header images.
Once you have uploaded a few images, they will appear under recently uploaded images.
Now you need to click on βRandomize uploaded headerβ button under recently uploaded images and then save your changes.
You can now visit your website and reload it to see header images change randomly.
Method 2. Add Custom Header Images on Select Pages Using Plugin
This method is more flexible and gives you more control on how to show different or random header images for WordPress posts, pages, category, or tag archives.
First thing you need to do is install and activate the WP Display Header plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Upon activation, you need to edit a post or create a new one. You will notice a new meta box labeled βHeaderβ below the post editor.
Here you can select a previously uploaded header image to your theme and use it as a header for this post. You can also check the βRandomβ option to randomly display a background image from your uploaded header images.
If you want to add more header images, then head over to Appearance Β» Customize and click on the Header tab.
Next, you need to click on the βAdd imageβ button to upload more header images. You donβt need to change the header of your theme just upload the images and exit the customizer.
The plugin also allows you to change header image for your category and tag archive pages.
You will need to go to Posts Β» Categories page and then click on the Edit button below category you want to change.
On the category edit screen, you will notice the new header section where you can select a header image or show random header images.
Donβt forget to click on the βUpdateβ button to save your changes.
Thatβs all, we hope this article helped you learn how to easily add random header images to your WordPress blog. You may also want to see our guide on how to boost WordPress speed and performance.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.