
Tagged: Crash, easy slider, full width
-
AuthorPosts
-
September 13, 2025 at 1:31 pm #1489212
Hi
The Full Width Easy Slider element crashes my webite when it is enabled. On a draft page it renders the page content blank except for the header.
On a live page the site retruns a fatal error and loads nothing.
Any ideas?I have disabled all plugins and tested and the issue remains. I have inlcuded a test page URL and logins (private). The test page has the element included. If you delete it, it returns to normal.
Any help is appreciated.
Thank you
EdSeptember 13, 2025 at 5:08 pm #1489214Hey Swarez,
I see that you have a modified slideshow.php in your child theme, when I activate the parent Enfold v7.1.1 the test page loads correctly with the slider and all other elements. Try removing your custom slideshow.php from your child theme.Best regards,
MikeSeptember 16, 2025 at 11:32 am #1489271Thank you so much Mike – that’s awesome, it solved the problem and thank you!!!
Shame though, that the special heading can’t be transferred over to an Easy Slider – I tried with the shortcode. It’s messy.
Any chance we coudl request the ability to add a second background image to transitionon (in a Colour Section elelement?)
Again, thank you
EdSeptember 17, 2025 at 10:54 pm #1489326Hi,
Glad to hear that this works. To change the background image in a color section like a slideshow, add a custom class “color-section-slideshow” to your color section in the Advanced ▸ Developer Settings ▸ Custom CSS Class (no dot)
Then add this snippet in your child theme functions.phpfunction color_section_slideshow() { ?> <script> document.addEventListener("DOMContentLoaded", function () { // Target your color section const section = document.querySelector(".color-section-slideshow"); if (!section) { console.warn("No element found with selector .color-section-slideshow"); return; } // List of background images const images = [ "/wp-content/uploads/path-to-image1.jpg", "/wp-content/uploads/path-to-image2.jpg", "/wp-content/uploads/path-to-image3.jpg", ]; if (!images || images.length === 0) { console.warn("No images provided for slideshow"); return; } let current = 0; const delay = 3000; // ms between slides const transitionDuration = 1000; // ms for transition const effect = "fade"; // "fade" or "slide" section.style.position = section.style.position || "relative"; section.style.overflow = "hidden"; section.style.backgroundImage =
url(${images[0]})
; section.style.backgroundSize = "cover"; section.style.backgroundPosition = "center center"; images.forEach((src) => { const img = new Image(); img.src = src; }); const overlay = document.createElement("div"); overlay.style.position = "absolute"; overlay.style.top = "0"; overlay.style.left = "0"; overlay.style.width = "100%"; overlay.style.height = "100%"; overlay.style.backgroundSize = "cover"; overlay.style.backgroundPosition = "center center"; overlay.style.zIndex = "0"; overlay.style.pointerEvents = "none"; overlay.style.opacity = "0"; overlay.style.transition =opacity ${transitionDuration}ms ease-in-out, transform ${transitionDuration}ms ease-in-out
; section.appendChild(overlay); function showNextImage() { current = (current + 1) % images.length; overlay.style.backgroundImage =url(${images[current]})
; if (effect === "fade") { overlay.style.transform = "none"; overlay.style.opacity = "1"; setTimeout(() => { section.style.backgroundImage =url(${images[current]})
; overlay.style.opacity = "0"; }, transitionDuration); } else if (effect === "slide") { overlay.style.transition = "none"; overlay.style.transform = "translateX(100%)"; overlay.style.opacity = "1"; overlay.offsetHeight; overlay.style.transition =transform ${transitionDuration}ms ease-in-out
; overlay.style.transform = "translateX(0)"; setTimeout(() => { section.style.backgroundImage =url(${images[current]})
; overlay.style.transition = "none"; overlay.style.opacity = "0"; overlay.style.transform = "translateX(100%)"; setTimeout(() => { overlay.style.transition =opacity ${transitionDuration}ms ease-in-out, transform ${transitionDuration}ms ease-in-out
; }, 20); }, transitionDuration); } } const intervalId = setInterval(showNextImage, delay); }); </script> <?php } add_action( 'wp_footer', 'color_section_slideshow', 99 );Change the images in the snippet to suit and change const effect = “slide”; to “fade” or “slide” as you wish.
Best regards,
Mike-
This reply was modified 2 weeks, 6 days ago by
Mike. Reason: corrected snippet
September 18, 2025 at 9:11 am #1489345Hi Mike
Thank you for the great update. I have done as you suggested but cannot get the images to appear. I tried relative paths and absulute paths for the images with no result.Pasted the contents of the code block to the functions.php file in the Child theme. Added the custom CSS class. No joy…
Any ideas?
Many thanks
Ed-
This reply was modified 3 weeks ago by
Swarez.
September 18, 2025 at 11:18 am #1489351Hi,
I could not login, seems the password is not correct please check. It looks like you have a comma after the last image URL:
please remove, the last image URL should not end with a comma, like the example code above:
If this doesn’t help, please update the password so we can check.Best regards,
MikeSeptember 18, 2025 at 11:57 am #1489353Hi Mike
I have done that but it still doesn’t work….// List of background images const images = [ "https://swarezart.com/wp-content/uploads/2025/07/HP-FIXED-IMAGE10-2.jpg", "https://swarezart.com/wp-content/uploads/2025/07/HP-FIXED-IMAGE-1.jpg", "https://swarezart.com/wp-content/uploads/2025/07/HP-FIXED-IMAGE.jpg" ];
Will update to a new password
Many thanks
Ed-
This reply was modified 3 weeks ago by
Swarez.
September 18, 2025 at 10:11 pm #1489368Hi,
Thanks for the login, it looks like I made an error when I pasted the code above from my test site, I updated your site and the snippet above and it’s now working. Please check. Sorry for the confusion.Best regards,
MikeSeptember 18, 2025 at 10:46 pm #1489372Absolutely brilliant Mike!
Thank you very much indeed… I appreciate what you have done enormously.
All the best
EdSeptember 18, 2025 at 11:10 pm #1489376Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
This reply was modified 2 weeks, 6 days ago by
-
AuthorPosts
- The topic ‘Full Width Easy Slider crashes website’ is closed to new replies.