Get the Official WPSaviour App Now!

BlogThemes

How to Add a Parallax Effect to Any WordPress Theme

Not too long ago, one in all our readers requested us the right way to add a parallax impact to any WordPress theme? Parallax impact is an online design development the place a background picture scrolls slower than foreground content material. On this article, we are going to present you the right way to simply add a parallax impact to any WordPress theme.

What’s a Parallax Impact?

Parallax impact is a contemporary internet design method the place background ingredient scrolls slower than foreground content material. This impact provides depth to the background photos and makes them really feel interactive.

Parallax impact can be utilized on touchdown pages, longform content material, gross sales pages, or homepage of a enterprise web site. It’s an effective way to focus on totally different sections on a prolonged web page.

Many premium WordPress themes include built-in parallax impact on their homepage. You may also use parallax impact in most WordPress web page builder plugins as nicely.

Nevertheless, not all themes have a built-in parallax impact, and chances are you’ll not need to use a web page builder to create customized web page layouts only for a parallax impact.

Let’s check out the right way to simply add parallax background impact to any WordPress theme.

Technique 1: Add Parallax Impact to Any WordPress Theme Utilizing Plugin

This technique doesn’t require you so as to add any code to your WordPress theme. It’s simpler and really useful for many customers.

Very first thing you could do is set up and activate the Superior WordPress Backgrounds plugin. For extra particulars, see our step-by-step information on the right way to set up a WordPress plugin.

Upon activation, you could edit the web page or put up the place you need to add the parallax impact. You’ll discover the brand new ‘Superior WordPress Backgrounds’ button within the visible editor.

WordPress advanced background button

Clicking on it’ll convey up a popup the place you possibly can change totally different settings for the background you need to add.

First, you could choose a picture as your background kind after which test the ‘stretch’ possibility.

Parallax background settings

Subsequent, you could click on on the ‘Choose Picture’ button to add or choose a picture you need to use. Just remember to are utilizing a big picture in any other case it’ll seem pixelated.

After that you could allow Parallax by selecting a parallax kind. There are a selection of types obtainable that you could experiment with. Essentially the most generally used parallax impact is scroll.

Click on on the Insert button to proceed.

The plugin will now add a shortcode inside your WordPress put up editor. It is going to look one thing like this:

[nk_awb awb_type=”image” awb_stretch=”true” awb_image=”22″ awb_image_size=”full” awb_parallax=”scroll” awb_parallax_speed=”0.5″ awb_mouse_parallax=”true” awb_mouse_parallax_size=”30″ awb_mouse_parallax_speed=”10000″]

Your Content material Right here

[/nk_awb]

Exchange ‘Your content material right here’ with your personal content material after which save your web page.

Now you can go to your web site to see it in motion.

Parallax effect preview

Technique 2: Add Parallax Impact to Any WordPress Theme with CSS

This technique requires you to have a good understanding of HTML / CSS in addition to how WordPress themes work.

First, you will have to add the picture you need to use for parallax impact to your WordPress media library by visiting Media » Add New web page.

After importing the picture, you could copy the picture URL by enhancing the picture in WordPress media library.

Copy image URL

Subsequent, you could add the next HTML into the web page or put up the place you need to present the parallax impact. You may also add this HTML into your WordPress theme or baby theme.

1
2
3
4
5
6
7
<div class="parallax">
<div class="parallax-content">
Your content material goes right here...
</div>
</div>

Subsequent you could add the next customized CSS to your WordPress theme.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.parallax { 
background-image: url("http://instance.com/wp-content/uploads/2017/08/my-background-image.jpg");
top: 100%;
background-attachment: mounted;
background-position: heart;
background-repeat: no-repeat;
background-measurement: cowl;
margin-left:-410px;
margin-right:-410px;
}
.parallax-content {
width:50%;
margin:0 auto;
coloration:#FFF;
padding-top:50px;
}

Don’t overlook to exchange the background picture URL with your personal background picture.

Now you can save your modifications and go to your web site to see it in motion.

Parallax effect added with CSS

Be aware: You might want to regulate CSS to work along with your website’s structure.

We hope this text helped you discover ways to simply add parallax impact to any WordPress theme. You may additionally need to see our mega listing of the most needed WordPress suggestions, methods, and hacks.

Download The WPSaviour App Now

Related posts
Beginner’s GuideBlogShowcase

7 Best Shopify Alternatives in 2020 (Cheaper and More Powerful)

Beginner’s GuideBest WordPress PluginsBlog

14 Best AI Chatbots Software for Your Website (Comparison)

Beginner’s GuideBlogTips

Magento vs WooCommerce – Which one is Better? (Comparison)

Beginner’s GuideBlogTips

12 Best Calculator Plugins for Your WordPress Site

Sign up for our Newsletter and
stay informed

Leave a Reply

Your email address will not be published.

Fear Of Missing Out?

Sign up with your email address to receive WordPress tips and updates
SUBSCRIBE NOW
Terms and Conditions apply
close-link
Click Me