-
AuthorPosts
-
May 11, 2018 at 7:16 pm #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
HelenMay 14, 2018 at 9:38 pm #956678Hey 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,
BasilisMay 21, 2018 at 5:48 pm #959887I 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?
May 23, 2018 at 3:13 pm #960850Hey!
The preloader doesn’t look “jerky” on my browser as I previously noted. What is your browser?
Best regards,
IsmaelMay 23, 2018 at 3:56 pm #960884Hi 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
HelenMay 25, 2018 at 3:45 pm #962217Hi,
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,
IsmaelJanuary 8, 2020 at 4:50 pm #1171512Dear Ismael
Is it possible to activate the page preloader on products only and not on the full website ?
Thank you !January 9, 2020 at 6:30 am #1171695Hi,
@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,
IsmaelJanuary 11, 2020 at 3:47 pm #1172395hello 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 fileAfter 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, 9 months ago by Cloudypro.
January 13, 2020 at 1:44 pm #1172780Hi,
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,
IsmaelJanuary 13, 2020 at 1:50 pm #1172781Thank you very much for your kind support Ismael
I will ask my developer to help me with this and use your reply as guidanceJanuary 14, 2020 at 6:46 am #1173089 -
AuthorPosts
- You must be logged in to reply to this topic.