How To's

How to add random header images to WordPress blog?

Adding beautiful header images in WordPress blog is an excellent way to improve the look and feel of your website. The default image settings let you keep only one header image all the time. More images on the header will make your website more interesting. There are two ways to add random header images to your WordPress blog. In this article, we will show you both methods of how to add random header images to WordPress blog:

Most of the WordPress themes support the header image options. The custom header is different than the background image. It allows you to set a custom background image on your WordPress website.

1. Random header images using WordPress Theme Customizer

This method is easier for WordPress users. The first step is to go to the “Appearance” and click on “Customize” page. You will see the WordPress Theme Customizer page.

appearance customize wordpress

Click on the “Header” tab. The header option may be labeled as header image or header media.

header media option wordpress

You need to click on “Add new image” button to add random header images in WordPress blog.

add new image wordpress

Once you have uploaded a few images, all images will appear under recently uploaded images. Next step is to click on “Randomize uploaded header” button. This button will be visible under recently uploaded images. Now click on “Save & Publish” button to save your changes.

save and publish button wordpress

You can visit the website and see newly added random header images.

2. Add custom header images on select pages using the plugin

The plugin gives you more control on how to show different or random images for WordPress posts, pages, category or tag archives. There are various plugins available for header images such as WP display header, Custom Header Extended plugin, and Unique Headers plugin.

Choose the plugin as per your requirement. The first step is to install and activate the WP display header plugin.

After activation, edit a post or create a new post. In the post editor, you will see a new meta box labeled as “Header”.

random header post wordpress

You can select previously uploaded header image to your theme and use it as a header for this post. One other option is available. You can check the “Random” option to randomly display a background image from your uploaded header images.

To add more header images, go to the appearance and click on customize. Next step is to click on the “Header” tab. Click on “Add new image” to upload more header images.

add header images wordpress

Upload the images and exit the customizer. With this plugin, you can change header image for your category and tag archive pages. Go to the posts, click on categories page. You will see edit button below the category – click on that.

edit category header image wordpress

You will see the new header section where you can select a header image or show random header images.

random header category wordpress

After selecting the header images click on “Update” button to save changes. Random header images will bring variation to your WordPress website. We hope above-mentioned methods will help you to add random header images in WordPress blog.


Leave a Reply

Your email address will not be published. Required fields are marked *