Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #531598

    Hi,

    How can I solve that the pre loading icon be displayed just on the home page?
    Becasue just my home page is heavy…

    Thank you

    Best regards,
    Peter

    #531987

    Hi Peter!

    Thank you for using Enfold.

    Please edit the header.php file. Look for this code:

    if("av-preloader-active av-preloader-enabled" === $preloader)
    	{
    		echo avia_preload_screen(); 
    	}

    .. replace it with:

    if("av-preloader-active av-preloader-enabled" === $preloader && is_front_page())
    	{
    		echo avia_preload_screen();
    	}

    You might also see the preloader when you go to a different page from home.

    Best regards,
    Ismael

    #532150

    Hi,

    It’s work, thank you! :)

    1. Hm… can I use this http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/ for header.php too or just builder elements?

    2. And how can I turn off this:

    .js_active.av-preloader-enabled .av-minimum-height .container {
        -webkit-transition: opacity 1.2s ease-in;
        transition: opacity 1.2s ease-in;
    }

    I think it’s a new transition in 3.4.1 on every page, when the preloader is active. It’s very nice but I don’t need this.

    Thank you very much! :)

    Best regards,
    Peter

    • This reply was modified 9 years, 1 month ago by jambrikp.
    #532157

    Hey!

    You can simply copy header.php file to your child theme and modify it there.

    Please add following code to Quick CSS

    .js_active.av-preloader-enabled .av-minimum-height .container {
        -webkit-transition: none;
        transition: none;
    }

    Best regards,
    Yigit

    #532211

    Thank you! :)

    Best regards,
    Peter

    #532213

    Hi!

    Please let us know if we can help you with anything else, we would be glad to help you!

    Best regards,
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘I'd like preloading icon just on the home page’ is closed to new replies.