Hi,
How to only enable Page Preloading + Page Transitions for the homepage only?
It’s nice when visitor access website the first time, but then it’s getting frustrating when browsing internal page.
Thanks for our help!
Hi resbangkok,
Could you provide us with a link to the site in question so that we can take a closer look please?
Best regards,
Rikard
Hi Rikard,
Right now the website is in dev on local machine, but this is the settings I am talking about:
https://i.imgsafe.org/28d2d72.png
Possible to activate them only for the homepage?
Thanks
Hey!
Disable Transitions and add this to Quick CSS:
.av-siteloader-wrap {
display: none !important;
}
.home .av-siteloader-wrap{
display: block !important;
}
Regards,
Josue
Thanks, I did that and tested on FF but this made all click on the page not working. Only the scroll was working fine :(
Hi,
Can you post the link to your website please?
Regards,
Josue
Hi,
The website is actually on dev locally, so as a workaround here is what I did:
1. in the child theme copy the header.php file
2. line 10 I have changed:
$preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
to become
if ( is_front_page() ) $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
The only small issue is that it’s doing also the transition/preloading when we go from homepage to other page, but not that annoying.
Glad you managed to get it working and thanks for sharing your solution.
Regards,
Josue