Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

cbParallax

Responsive, parallaxing fullscreen background image.

Responsive, parallaxing fullscreen background image.

Author Demis Patti
Profile
Contributors demispatti
Tags background, Bild, fullscreen, Hintergrund, Hintergrundbild, image, parallax, responsive
  1. cb-parallax screenshot 1

    Multiple background views of a single post.

  2. cb-parallax screenshot 2

    Settings Page.

  3. cb-parallax screenshot 3

    Custom background meta box on the edit post screen.

  1. Upload the cb-parallax folder to your /wp-content/plugins/ directory.
  2. Activate the "cbParallax" plugin through the "Plugins" menu in WordPress.
  3. Edit a post to add a custom background.

Version 0.8.0

  1. I'm responsive, baby! Please note that ( for now ), when an image aspect ratio matches the viewport aspect ratio, there is no room for parallax. Choose your image higher / wider than the expected viewport size according to the parallax direction ( vertical / horizontal)
  2. Minor UI changes

Version 0.7.5

  1. Updated Nicescroll to version 3.6.8. Scrolling behaviour might be different now. Options to control scrolling behaviour will be available soon.
  2. Removed custom Nicescroll version
  3. Added easing
  4. Resolved an issue with preserved scrolling

Version 0.7.4

  1. Optimized performance
  2. Removed obsolete "add media" button on both the meta box and the settings page
  3. Modified the "add media" button

Version 0.7.3

  1. Included missing file...

Version 0.7.2

  1. Optimized code, removed the loader-class
  2. Optimized js

Version 0.6.0

  1. Fixed some bugs that occurred on Installations using the non-default locale.
  2. Fixed issue with overlay color.
  3. Fixed issue with static background image.
  4. Improved scroll behaviour.
  5. Added a feature to set one image for all supported posts and pages, including the possibility to override these global settings on a per-post basis (see "Settings" > "cbParallax").
  6. Moved the options from the general settings page to "Settings" > "cbParallax".
  7. Improved the performance of the parallaxing-script.
  8. Removed the option to set a background color.
  9. The interface is more user-friendly now. 10.You may want to review your image overlay settings on the post edit screens since they work again.

Version 0.5.0

  1. Reduced required PHP-Version to 5.3 or above due to user requests.
  2. Minor bug fixes regarding errors on activation.

Version 0.4.2

  1. Increased required PHP-Version to 5.4 or above.

Version 0.4.0

  1. Completely rewritten the script for the public part.
  2. Static image is now also being handled by the public script, it's mobile ready now.
  3. Added an option to disable parallax on mobile ( View the "Settings / General" page). Will show the image as a static background.

Version 0.3.0

  1. Major bug fixes, the effect now works as expected.

Version 0.2.6

  1. The scripts for the frontend load only if needed.

Version 0.2.5

  1. Added support for the blog page.
  2. Fixed support for single product page views.
  3. The "preserve scrolling" option superseeds the "Nicescrollr" plugin settings on the frontend, if both plugins are enabled.
  4. Code cleanup and some minor refactorings.

Version 0.2.4

  1. Optimized the script for the public part.
  2. Added a section to the readme file regarding known issues.
  3. Updated the readme file.

Version 0.2.3

  1. Fixed some bugs.
  2. Added a background color to the image container to kind of simulate a "color" for the overlay.
  3. Slightly enhanced meta box display behaviour.
  4. Added support for "portfolio" post type / entries for web- and media workers :)

Version 0.2.2

  1. Removed display errors.

Version 0.2.1

  1. Resolved the translation bugs.
  2. Optimized the scrolling behaviour.
  3. Corrected the scroll ratio calculation.
  4. Corrected the "static" background image display.
  5. Corrected the meta box display behaviour.
  6. Added the option to preserve the nice scrolling behaviour without the need to use the parallax feature ( see "Settings / General / cbParallax" ).

Version 0.2.0

  1. Optimized the script responsible for the parallax effect.
  2. Added Nicescroll for smooth cross-browser scrolling.

Version 0.1.1

  1. Massively refactored the script responsible for the parallax effect.
  2. Added the possibility to scroll the background image horizontally.
  3. Added a function to reposition the image on window resize automaticly.
  4. Improoved performance.
  5. Improoved compatibility with webkit, opera and ie browsers.
  6. Implemented a function that eases mousescroll.

Version 0.1.0

First release :-)

Where do I interact with this plugin?

You find the plugin's settings page in the "Settings > cbParallax" menu. You will find the "cbParallax" meta box on edit screens of all supported posts, pages and products.

How does it work?

Within the meta box, you could:

  1. Choose a background image. Depending on its dimensions you will be presented with a switch for enabling the parallax effect.
  2. Leave the switch off, since you should first set the options for a static state.
  3. Set the options below as you need.
  4. Turn on the switch.
  5. Set the options below as you need.

Within the settings page, you could:

  1. Choose a background image. Depending on its dimensions you will be presented with a switch for enabling the parallax effect.
  2. Leave the switch off, since you should first set the options for a static state.
  3. Set the options below as you need.
  4. Turn on the switch.
  5. Set the options below as you need.
  6. Choose whether to use these settings globally for all pages (global).
  7. Choose whether to allow overriding these settings with the image you define on single posts and pages.
  8. Set the options for "scroll behaviour" and "mobile", and you're good to go :-)
  9. Enjoy!

Save your work and visit the page :-)

What was that about "Nicescroll"?

I really like Nicescroll. I like its scroll behaviour, its momentum-scroll, its easing,... smile. It is perfect for parallaxing. So I implemented it for a smooth cross-browser scrolling experience. I modified it slightly, tough, to preserve the browser-specific default vertical scrollbar. If you bring your "own" Nicescroll library, which could be the case with other plugins or your theme, this mod will not be loaded. So there won't be any conflict regarding this popular library, preserving it's unique scrolling behaviour.

Why doesn't it work with my theme?

Most likely, this is because your theme doesn't support the WordPress custom-background theme feature. This plugin requires that your theme utilize this theme feature to work properly. Unfortunately, there's just no reliable way for the plugin to overwrite the background if the theme doesn't support this feature. You'll need to check with your theme author to see if they'll add support or switch to a different theme.

My theme supports 'custom-background' but it doesn't work!

That's unlikely. Just to make sure, check with your theme author and make sure that they support the WordPress custom-background theme feature. It can't be something custom your theme author created. It must be the WordPress feature.

Assuming your theme does support custom-background and this plugin still isn't working, your theme is most likely implementing the custom background feature incorrectly. However, I'll be more than happy to take a look.

How do I add support for this in a theme?

Your theme must support the Custom Backgrounds feature for this plugin to work.

If you're a theme author, consider adding support for this if you can make it fit in with your design. The following is the basic code, but check out the above link.

add_theme_support( 'custom-background' );

Are there any known limitations?

This is not really a limitation of functionality, but since the background image container wraps the body element, it usually resembles the viewport dimensions. This means, that on themes where the navigation bar is on the side, the sidebar covers a part of the viewport and thus also a part of the image (logic, but noteworthy).

Can you help me?

Yes. I have a look at the plugin's support page two or three times a week and I provide some basic support there.

Are there any known issues?

Yes. If you're using the "Vantage" theme from SiteOrigin, the background image won't be displayed on Firefox. On every other browser it will. I'm on it.

Features

  • Custom background image
  • One Image for all pages or individual images and effects on a per post basis
  • Compatible with posts, pages and products
  • Optional fullscreen background parallax effect
  • Works vertically and, for fun, horizontally
  • Supports and is supported by Nicescroll
  • Various overlays to choose from

Requirements

Your theme must support the core WordPress implementation of the Custom Backgrounds theme feature.

In order to use the parallax feature, I decided to set the minimum required image dimensions to 1920px * 1200px, so that covers a fullHD screen with a slight vertical parallax movement ( Image height - viewport height, so 1200px - 1080px gives 120px offset to move the image. I hope you get the point here.).

Your theme's layout must be "boxed" somehow or an opacity should be added to the page content container for the background image to be seen. This is up to you.

PHP version 5.3 or above.

Share  
Download
Version 0.8.0

Requires WordPress version: 4.5 or higher

Compatible up to: 4.7.2

Last Updated 14 Feb 2017

Date Added: 28 Jul 2015

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

5 stars
2 ratings
3,889 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0