In one of my earlier tutorials titled Front Page 1 background slider in Infinity Pro using Featured Galleries and Backstretch I showed how we can send multiple images uploaded to a gallery attached to the Homepage to Backstretch initialized on Front Page 1 widget area.
In this article, I share the steps to implement the same in Atmosphere Pro so that the images rotate in the background vs as a single background image.
Tested in Atmosphere Pro 1.1.3.
Step 1
Install and activate Featured Galleries.
Step 2
Create a static Page named say Home
and set it as Homepage at Settings > Reading.
Step 3
Edit the Home
Page and upload your desired background images for Front Page 1 in the Featured Gallery meta box.
Step 4
a) Upload jquery.backstretch.min.js to child theme's js
directory.
Since we are not going to use the older (v2.0.4 as of today) backstretch.js file which comes shipped with the theme, you may want to delete it.
b) Edit backstretch-set.js
and replace its entire code with
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Would it not be simpler to use a slider plugin like Soliloquy so that it gives you more control over the images and other functions?
When doing so, it will not be possible to have it fit exactly inside the FP1 (whose height is dynamic and changes to match user’s viewport height).
I have presented Soliloquy as an option to the person that requested this and told him about the above limitation and he opted for the solution presented in this tutorial.
ok, I forgot about the fit issue.
-Scot
I’ve followed the steps up to Step 7. From what I can tell the front-page.php code is not the same as what’s listed here. Will the replacement code still work?
Regarding Step 7, I just checked the code in
front-page.php
of Atmosphere Pro 1.1.3 and it is the same as what is in the tutorial.Can you tell me the version of the theme you are using?
Thanks for helping to resolve this. It is working now. One question – can the initial black fade-in be removed? It doesn’t look that great.
That is not possible as far as I know. You may want to try asking this at https://github.com/jquery-backstretch/jquery-backstretch/issues.
I’ve followed the steps up to Step 7. From what I can tell the front-page.php code is not the same as what’s listed here. Will the replacement code still work?