Tagged: preloader, preloader on front page
-
AuthorPosts
-
March 29, 2025 at 11:40 am #1480425
HI
I am using this in my header.php to only have my preloader on 2 pages:\if(is_page(1147)) $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled'; if(is_page ( 945)) $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';I tried: is_page( array( but that returned a php error.
This is working fine, although it shifts a bit before the page loads, and there seems to be a flash (especially in chrome) when the other pages load – maybe because the preloader background color is set to black? Is there a way to have them load a bit softer?
I have taken the preloader off page 945 so you can see how that page loads – it just started showing a black background also on the logo area: https://imgur.com/a/aKqXz33. It also seems to shift a bit, which is why I added the preloaded to that page. If those issues were fixed, I would remove it and only have it on the front page (1147).Also I just saw that the video on page 945 is not loading on Safari. Can you check that out?
thanks
Nancy-
This topic was modified 7 months, 3 weeks ago by
Munford.
March 29, 2025 at 4:25 pm #1480453Hey Munford,
When I test your mp4 on Mac & Safari I see this error:The file isn’t compatible with QuickTime Player.


When I convert with https://video.online-convert.com/convert-to-mp4 the file then plays fine, try this.Best regards,
MikeMarch 29, 2025 at 5:30 pm #1480458Thanks
that seems to work.-
This reply was modified 7 months, 3 weeks ago by
Munford.
March 29, 2025 at 6:09 pm #1480460Hi,
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 topic was modified 7 months, 3 weeks ago by
-
AuthorPosts
- The topic ‘preloader on 2 pages only’ is closed to new replies.
