In this article I show how the first home section's Parallax background can be replaced with rotating images with fading transition when using Parallax Pro.
Summary:
- Exclude Featured Section 1 from theme customization section.
- Exclude Home Section 1 from getting the background image CSS applied.
- Enqueue Backstretch and initialize it on Home Section 1 by providing the URLs of the rotating images.
Step 1
Edit wp-content/themes/parallax-pro/lib/customize.php.
Change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$images = apply_filters( 'parallax_images', array( '1', '3', '5' ) ); |
to
To view the full content, please sign up for the membership.
Already a member? Log in below or here.