-
AuthorPosts
-
June 23, 2022 at 4:32 am #1356225
Hey!
I want to have the page preloading option to work only on the first loading of the homepage.
I have looked trow this forum, the tried your suggestions.
sadly, at the moment, when I turn on the Page Preloading option in the theme option, the entire site is frozen (even after I’ve deleted all the code lines I added regarding the preloading option)I’ve added a video so you could see the problem
also the website and login credentialsCan you please help me,
1. To fix the problem so the site will not be frozen when the Page Preloading option is on
2. make the Page Preloading option to be visible only on the first loading of the homepageThank you
June 25, 2022 at 10:25 pm #1356495Hey Reut Rachel,
Thanks for the link to your site, but unfortunately I couldn’t login.
The css that is blocking your menu right now is on line 95 in your child theme stylesheet:.home .av-siteloader-wrap{ display: block !important; }
remove this and you will be able to click your menu again.
Unfortunately, I don’t have a solution for making the Page Preloading option work only on the first loading of the homepage.
Determining only the first load of the page would be difficult and require some custom javascript.
Perhaps there is a preloader plugin that will beable to do this, I recommend checking.Best regards,
MikeJune 28, 2022 at 4:52 am #1356644Hey :)
Thanks for your reply, but unfortunately, it didn’t work.June 28, 2022 at 10:00 am #1356688Hi,
Thank you for the update.
Did you try to toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css?
We tried logging in to the site but the user account that you provided above seems to be invalid. Please check the info carefully or provide another login account.
Best regards,
IsmaelJuly 7, 2022 at 4:12 pm #1357567Hi!
Yes, I’ve tried to disable file compression.
Still, whenever the Page Preloading option is on the links on the front end are not working.I’ve updated the login info and added it to the private content
Thank you for all the help
July 7, 2022 at 6:39 pm #1357592Hi,
Thank you for the login, the css that I recommended removing was still in the Quick CSS, I commented it out for you so it would not work and enabled the Page Preloading option and the main menu links are now working, please clear your browser cache and check.Best regards,
MikeJuly 8, 2022 at 1:21 am #1357613Thanks, that did it.
One question, I have the WPML plugin on the site,
at the moment, the pre-loading is applied only to the main homepage, how can I apply it to the translated homepage?July 8, 2022 at 1:09 pm #1357690Hi,
I see that you are using a custom header.php in your child theme with this function to achieve to apply the preloader only on the homepage (page-id-47):if(is_page(47)) $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
to add the translated homepage to this you would add the page ID (page-id-424) like this:
if(is_page(47) || is_page(424)) $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
I did this for you and it is working please check.
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.