Most WordPress themes such as like Divi support the header image features. This feature enables you to set a background for the header, which is different from the website background and the featured images of your content. Using beautiful header images can be an excellent way to improve the look and feel of your website.

The default header image setting restricts you to show one header image all the time. What if you can use several header images and show these randomly? That will definitely make your website a lot more interesting.

In today’s article, I am going to show you two ways to add header images to a WordPress website –

  1. Using the default option and
  2. Using a plugin.

Let’s get started with the default method first.

Showing Random Header Image with the Default Option

Most WordPress themes feature a default option to use random header images. To access that feature, go to Appearance -> Customize from your website dashboard.


Click on the “Header Media” section. This will open the header image options.


Current Header” will display the currently active header image. Click the “Add new image” button to add new header images. You can add as many images as you want. Once you have added the images, click the “Randomize uploaded headers” button in the “Previously uploaded” section.


Click the “Save & Publish” button to save your changes. Now load your website and enjoy random header images.

Showing Random Header Image with a Plugin

There are some WordPress plugins which make it a lot easier to show random header images. When using these plugins, you will have more options to control the header images. While there are several plugins available for this job, we will use Unique Headers for this tutorial.

The Unique Headers plugin enables you to choose custom header images for individual posts, pages, tags, categories, and other taxonomies. Once you install and activate the plugin, you will find a dedicated custom header field in the post editor.


You will find the custom header option in both the post and page editor. Choose your desired image, publish the post, and enjoy your custom header image.

As I said above, it is also possible to set custom header images for your tags, categories, and other taxonomies.

To do that, go to the Appearances -> Categories/Tags page. Choose your desired tag or category, and you will find an option for setting a custom header image.


Choose your custom header image, click the “Update” button, and that’s it. You have just set a custom header image for that tag or category.

Final Words

Using random header images can be a great way to bring variation to your WordPress site. You can use the default option or use a plugin to do that. Let me know which method you have chosen. And if you use any other random header image plugin, let me know that too.