Add Random Header Images to Your WordPress Website Without Coding

add random header images to your WordPress website

Do you want to add random header images to your WordPress website? You may have seen at many websites having different header images whenever you visit a new page or post.

It’s because most of the WordPress themes have a built-in feature to add a header image. But most of the WordPress users don’t know about the hidden feature of WordPress.

Every theme available in the WordPress theme repository has a feature to add multiple header images. If you have bought a theme from somewhere else and there is no such option then you have to contact your theme provider.

In this article, you will learn the easiest way to add random header images to your WordPress website.

Start Adding Random Header Images From the WordPress Theme Customizer

Every WordPress theme has a customizer consisting many options to modify the design of your website.

You can check it by navigating to Appearance>>Customize. You will see many options. Though it may be different depending on the WordPress theme you’re using but still, the customizer will be available for sure.

In the customizer, you will see “Header”, “Header Image” or such related item. Open that item and you will have the buttons to add a header image.

Random header image

Depending on the theme you use, you can also find this option directly. Go to Appearance>>Header.

If your theme doesn’t have this option then it will have the customizer option for sure. Open it and you will see a button to “Add New Image”.

If you have already added an image then you will see a button to hide the image.

But to add random images to your WordPress website, you have to add more than one image. Use the “Add new Image” button for adding more images.

The final step is to click on the “Randomize Uploaded Images” button which will activate the randomization feature for the header images you have added.

Add random header image in WordPress

This is a built-in feature if the WordPress theme developer has used the custom header image using the WordPress official codex.

You can easily add a custom header in your WordPress theme.

After saving the setting, whenever you open a page, the header image will change. Depending on the number of images you have uploaded, the randomize cycle will continue.

Adding Random Header Images Using a Plugin

To have more control over the header images, you can use a plugin which will allow you to add random header images for posts, pages, and even categories.

Just install and activate WP Display Header plugin. I hope you know how to install a WordPress plugin.

The best part of this plugin is that you don’t need to do any kind of setting. Just directly go to your existing post or add a new post.

Scroll down and below the WordPress post editor, you will see a “Header” section from which, you can add the header image.

Random header image in WordPress

You can use your already uploaded header images using the customizer.

But if you want more choices then go back to Appearance>>Customize and open the header section to add a few more header images.

This plugin also gives you an option to add the header images for the categories and even the archives page.

Go to Posts>>Categories and edit the category. Just like the WordPress post editor, you will see the same option below the category settings.

Do the proper settings and save.

The header images will start showing randomly for every page, post etc. You have successfully done the job. For beginners, the use of this plugin can be really helpful.

Isn’t That easy to Add random header Images to Your WordPress Website

If your theme supports this feature then it’s one of the easiest things which doesn’t require any coding skill.

Though the random header image will only be good when you have a full header image theme. Most of the WordPress themes have the header image as the logo of the website.

You don’t need to randomize the logo, you should only use this feature if the theme has a full header image.

I hope you can easily add random header images to your WordPress website. If you still have any doubt, feel free to clear it.

You can also connect with us on Twitter, LinkedIn, and Facebook.

by Ravi Chahar

A WordPress Professional and the LinkedIn Influencer. A coder by passion and a blogger by choice. WordPress theme development is his forte. He is your WordPress guy who will teach you how to solve WordPress errors, WordPress security issues, theme development, design issues and what not.

2 comments

  1. Hi Ravi, I didn’t know about this plugin, when is it time to change one’s header? I try to keep my site uniform and wonder if I could use it from time to time.
    I like the flexibility of having a different header on different pages though, very nice.
    Thanks for sharing this one with us today!

    1. Hey Lisa,

      Having a random header is recommended only if you have a full-width header. And if your theme has this feature then you wouldn’t need a plugin. Just go to Appearance>>Header if any otherwise check the customizer.
      I don’t think it’s an idea for your website. It looks good with its default logo.
      Thanks for sharing your thoughts.
      ~Ravi

Leave a Reply

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