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

    #1186413

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

    #1186773

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

    and 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!
    Matt

    #1187250

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

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Nikko

    #1187280

    Hi 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!
    Matt

    #1187283

    Hi 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Page Preloading + Page Transitions for the homepage only’ is closed to new replies.