Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #955402

    Hi Kriesi

    We have over the last few weeks tried to get help from you regarding our pre-loader.
    The pre-loader we are using is styled via out General styling custom CSS (following your instructions).
    The loader is jerky, so when you go from one page to another it loads and then stops then starts again.

    You have instructed us on previous tickets to comment out the line (404) of code in the js/avia.js file: preloader_active.addClass(‘av-preloader-active av-preloader-reactive’);
    We have done this but it doesn’t stop the jerkiness.

    The reason this is important for this site is because the site promotes a laser which uses a similar movement in eye correction. The client feels having this jerky pre-loader reflects badly on their product.
    Please could you have a look at this again.
    Many thanks
    Helen

    #956678

    Hey helban,

    That requires modifications and our support does have a limit on that.
    Why not you just disable the preloader so you can have all that thing done?

    Best regards,
    Basilis

    #959887

    I am surprised that this modification would take so much when one of your colleagues believed it to be solvable by commenting out one line of code?

    #960850

    Hey!

    The preloader doesn’t look “jerky” on my browser as I previously noted. What is your browser?

    Best regards,
    Ismael

    #960884

    Hi Ismael

    It looks jerky on my computer in Firefox, Chrome and Safari.

    Earlier one of your colleagues said that it was loading twice and I should comment out a line in the avia.js file, which I did but it stopped the menu working well.

    Any help would be appreciated.
    With regards
    Helen

    #962217

    Hi,

    That particular modification should have not affected the menu. What happens to the menu after disabling line 404? Unfortunately, we can’t reproduce the issue on our end. Please provide a screencast.

    Best regards,
    Ismael

    #1171512

    Dear Ismael

    Is it possible to activate the page preloader on products only and not on the full website ?
    Thank you !

    #1171695

    Hi,

    @Cloudpro: This is possible, but you have to override the whole avia_preload_screen function in the child theme’s functions.php file, then add a certain conditional function to it — most likely is_product. The said function is located in the functions-enfold.php file around line 13. You can add the condition before returning the output. Example:

    if(!is_product()) $output = '';
    

    or..

    if(!is_product()) return;
    

    Best regards,
    Ismael

    #1172395

    hello Ismael

    I tried to install a child them which i didnt have before, but i had an error
    Error Details
    =============
    An error of type E_PARSE was caused in line 777 of the file /home/pervurt/public_html/wp-content/themes/enfold-child/functions.php. Error message: syntax error, unexpected ‘}’, expecting end of file

    After i deleted the child them, and activated Enfold again, my website got all messed up and it went into recovery mode !

    apparently the website is not reading any function or style css anymore and everything got ruined !

    my panic level is 100% now ! i went into maintenance mode for now

    is there a way to fix this ?

    • This reply was modified 4 years, 10 months ago by Cloudypro.
    #1172780

    Hi,

    Sorry for the delay. You should try to revert the site from a backup or a restore point. Did you import the parent theme options after activating the child theme? The theme options were probably lost because you forgot to do that step. Unfortunately, we won’t be able restore the theme options without a backup.

    // https://kriesi.at/documentation/enfold/child-theme/#how-to-install-the-child-theme

    Did you copy the whole parent functions.php file into your child theme directory? You don’t need to do that. We asked because there are more than 700 lines of code in the file as reported in the error above. Just create a file called functions.php file inside the child theme directory, then paste the avia_preload_screen function without the function_exists wrapper. Don’t forget the opening PHP tag.

    <?php
    
    // custom modifications here
    

    Best regards,
    Ismael

    #1172781

    Thank you very much for your kind support Ismael
    I will ask my developer to help me with this and use your reply as guidance

    #1173089

    Hi Cloudypro,

    Thanks for the update, please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

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