How to Add a Background Image in WordPress-With screenshot


Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
add background image in wordpress

Do you want to add a background image to your WordPress site?

Background images can be used to make your website look more engaging and aesthetically pleasant.

In this article, we will show you how to easily add a background image to your WordPress site.

add a background image in wordpress

Method 1. Add a Background Image Using Your WordPress Theme Settings

Hottest WordPress themes include customized background assist. This characteristic lets you simply set a background image to your WordPress website.

In case your theme helps the customized background characteristic, then we advocate utilizing this technique so as to add a background image to your WordPress website.

Nevertheless, in case your theme doesn’t assist this characteristic, otherwise you don’t like the way it implements background photographs, then you’ll be able to strive the opposite choices talked about in our tutorial.

First you might want to go to the Appearance » Customize page in your WordPress admin. This may launch the WordPress theme customizer the place you’ll be able to change completely different theme settings whereas viewing a stay preview of your web site.

Background image option in WordPress theme customizer

Next, you might want to click on on the ‘Background image’ choice. The panel will slide in and present you the choices to add or choose a background Image in your web site.

Select background image

Click on on the choose image button to proceed.

This may deliver up the WordPress media uploader pop-up the place you’ll be able to add a image out of your pc. You may as well choose a beforehand uploaded image from the media library.

Upload background image

Subsequent, you might want to click on on the select image button after importing or choosing the image you need to use as background.

This may shut the media uploader pop-up, and you will notice your chosen image’s preview within the theme customizer.

Background image settings

Under the image, additionally, you will be capable of see the background image choices. Underneath ‘Preset,’ you’ll be able to choose the way you need the background picture to be displayed: fill display screen, match display screen, repeat, or customized.

You may as well choose the background image place by clicking on the arrows beneath. Clicking on middle will align the image to the middle of the display screen.

Don’t overlook to click on on the ‘Save & Publish’ button on the prime to retailer your settings. That’s all, you’ve gotten efficiently added a background image to your WordPress website.

Go forward and go to your web site to see it in motion.

Method 2. Add a Custom Background Image in WordPress Using a Plugin

This methodology is much more versatile. It really works with any WordPress theme and lets you set a number of background photographs.

You can too set totally different backgrounds for any publish, web page, class, or every other part of your WordPress web site.

It automatically makes all of your background photographs full-screen and mobile-responsive. This implies your background image will automatically resize itself on smaller gadgets.

First, you have to set up and activate the Full Display Background Pro plugin. For extra particulars, see our step-by-step information on how one can set up a WordPress plugin.

Upon activation, you have to go to Appearance » Full Screen BG Image to configure the plugin settings.

Full screen background

You’ll be requested so as to add your license key. You will get this data from the e-mail you obtained after shopping for the plugin or out of your account on the plugin’s web site.

Subsequent, you have to click on on the ‘Save Settings’ button to retailer your adjustments. You are actually prepared to begin including background photographs to your WordPress web site.

Go forward and click on on the ‘Add New image’ button on the plugin’s settings web page. This can take you to the background image upload screen.

add new background image

Click on on the ‘Select image’ button to add or choose a image. As quickly as you choose the picture, it is possible for you to to see a reside preview of the image in your display.

Subsequent, you have to present a reputation for this image. This identify shall be used internally, so you should use something right here.

Lastly, you have to choose the place you need this image for use because the background web page.

Full Display Background Professional lets you set photographs as a world background, or you’ll be able to select from totally different sections of your web site like classes, archives, entrance or weblog web page.

Don’t overlook to click on on the save image button to avoid wasting your background image.

You’ll be able to add as many photographs as you need by visiting the Appearance » Full Screen BG Image web page.

If you happen to set multiple image for use globally, then the plugin will robotically begin displaying background photographs as a slideshow.

You’ll be able to regulate the time it takes for a image to fade out and the time after which a brand new background image begins to fade in.

Background fade in and fade out settings

The time you enter right here is in milliseconds. If you’d like a background image to fade out after 20 seconds, then you will want to enter 20000.

Don’t overlook to click on on the save settings button to retailer your adjustments.

Background Images for Posts, Pages, and Categories

Full Display Background Professional additionally permits you to set background images for single posts, pages, classes, tags, and extra.

Simply edit the submit/web page the place you wish to show a special background image. On the submit edit display screen, you’ll discover the brand new ‘Full Screen Background Image’ field below the submit editor.

Adding a background image for a single post or page

To make use of a background image for a selected class, it is advisable to go to the Appearance » Full Screen BG Image web page after which click on on the ‘Add New Image’ button.

After importing your image, you possibly can choose ‘Class’ because the context the place you wish to show the background image.

Set background image for a specific category

Now enter the precise class ID or slug the place you wish to show the image. See our information on how one can discover class ID in WordPress.

Don’t neglect to save lots of your image to retailer your settings.

Method 3. Add Background Images using CSS Hero

CSS Hero is a WordPress plugin that allows you to make any changes to your theme without touching a single line of code.

You can add background images quickly in a few simple steps. First, you need to install and activate CSS Hero. Once you’ve done that, it’s time to start customizing your website.

Now open up your homepage in your browser. You’ll see the ‘Customize with CS SHero’ link in your admin bar.

Background Image with CSS Hero

After you click that link, you’ll see the CSS Hero options open up. Hover your mouse over the area you want to add an image to.

In the screenshot below, you’ll see .header-filter-gradient area. When you click this area, you can then choose the background link in the left sidebar.

Custom background WordPress image

The background link will open. From there, you can click on ‘Image.’ Now, you can choose an image from Unsplash or from your uploads to create your background.

Add image to background with CSS Her

When you click on the image you want, you’ll see the ‘Apply Image’ button. Then you can choose what size you want your image to be. We chose the large version so it would stretch across the page.

Hit ‘Save and Publish’ at the bottom, and the background image is now saved for your site.

Custom background WordPress image

Method 4. Add Custom Background Images Anywhere in WordPress Using CSS Code

By default, WordPress provides a number of CSS classes to totally different HTML elements all through your WordPress website. You possibly can easily add custom background images to individual posts, classes, creator, and different pages utilizing these WordPress generated CSS classes.

For instance, When you have a class in your web site referred to as TV, then WordPress will routinely add these CSS classes to the body tag when somebody views the TV category web page.

<body class="archive category category-tv category-4"> 

You can use the inspect tool to see exactly which CSS classes are added by WordPress to the body tag.

Use inspect tool to see classes added by WordPress

You can use either category-tv or category-4 CSS class to style just this category page differently.

Let’s add a custom background image to a category archive page. You will need to add this custom CSS to your theme.

body.category-tv { 
background-image: url("
background-position: center center; 
background-size: cover; 
background-repeat: no-repeat; 
background-attachment: fixed;

Don’t forget to replace background image URL and the category class with your own category.

You can also add custom backgrounds to individual posts and pages. WordPress adds a CSS class with the post or page ID in the body tag. You can use the same CSS code just replace .category-tv with the post specific CSS class.

We hope this article helped you learn how to add a background image in WordPress.

If you liked this article please find us on Facebook and hit the like button.


Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Popular in getallfree Right Now !


Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let’s have a personal and meaningful conversation.

Inline Feedbacks
View all comments

Do you want to learn WordPress ?

Get free WordPress Videos, Themes,Plugins and more useful resources

getallfree resources