Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 credentials

    Can 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 homepage

    Thank you

    #1356495

    Hey 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,
    Mike

    #1356644

    Hey :)
    Thanks for your reply, but unfortunately, it didn’t work.

    #1356688

    Hi,

    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,
    Ismael

    #1357567

    Hi!

    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

    #1357592

    Hi,
    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,
    Mike

    #1357613

    Thanks, 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?

    #1357690

    Hi,
    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.