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.
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.
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.