-
AuthorPosts
-
February 18, 2020 at 9:51 pm #1185842
Hi dear Team,
i went through below topics in the forum:
https://kriesi.at/support/topic/page-preloading-only-on-home-page/
Now i managed to get this working on the main enfold theme.
I did migrate to enfold child now and don’t want to edit the header.php of of my main theme.Adding below code to functions.php of my child theme does not work:
function custom_code(){ if(!is_home()){ ?> <script> jQuery(window).load(function(){ jQuery('.av-siteloader-wrap').removeClass('av-transition-enabled'); }); </script> <?php } } add_action('wp_footer', 'custom_code');
do i have to copy the header.php to my child and if so, what if you update the header file of the parent theme? I guess the child copy would overrule any updates in the parent theme?
Is there a way to get this working without overruling the entire header.php from parent?
February 20, 2020 at 5:03 pm #1186413Hey sftsengineering,
This can be an alternative solution.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
body:not(.home) .av-siteloader-wrap.av-transition-enabled { display: none !important; }
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 21, 2020 at 3:41 pm #1186773Hi Victoria,
that doesn’t seem to work (neither in the child custom css, nor in the quick css).
I cleared browser cache and also disabled the caching in enfold:
CSS file merging and compression
Javascriptand selected “Delete old CSS and JS files”.
Do you think the only way might be to edit the custom.css of the parent? That would defeat the purpose i guess however ;)
Thank you!
MattFebruary 24, 2020 at 10:35 am #1187250Hi Matt,
Yes, the child theme would be pointless if you need to change it in the parent theme.
Can you try this code:body:not(.home) .av-siteloader-wrap { display: none !important; }
If it does not help, please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoFebruary 24, 2020 at 12:23 pm #1187280Hi NIkko,
that worked out flawless.
I tried it in quick css and the child css-file and both options work (technically i guess they are almost the same).Many thanks!
MattFebruary 24, 2020 at 12:36 pm #1187283Hi Matt,
We’re glad that we could help :)
And yes, technically they are the same but Quick CSS has more priority :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Page Preloading + Page Transitions for the homepage only’ is closed to new replies.