Okay
  Public Ticket #1928129
disable preloader
Closed

Comments

  • cristian started the conversation

    Hello there,

    where would I disable the preloader? It seems to go through its countdown even for the pages that only need to load a tiny bit of text and make the web feel very slow. 

    In that case, if its possible to adjust the preloaders settings, it would be even better.

    but otherwise just switching it off at least for certain pages would be best.

    thank you


  • cristian replied

    sorry, to be more exact:

    I would like to disable the preloader for the HOME, CONTACT pages but enable it for the PORTFOLIO page and also for each portfolio item.

    thank you,

    sandra


  •  1,810
    Support replied

    Hi Cristian, this is not really possible if you are using ajax, because there is no preloader between pages.

    If you disable ajax

    open header.php and replace


    <?php if( is_page_template( 'portfolio-page.php' ) || is_page_template( 'portfolio-mixed-page.php' ) || is_singular('andra_portfolio') ){ ?>

    <div class="preloader-wrap">
        <div class="outer">
            <div class="inner">
                <div id="logo-preloader">
    <img class="black-logo" src="<?php echo esc_url( $andra_logo_path ); ?>" alt="<?php echo esc_attr__("ClaPat Logo", "andra"); ?>">
                    </div>
                    <div class="trackbar">
                      <div class="loadbar"></div>
                    </div>
          <div class="percentage" id="percent"></div>
                    <div id="start-wrap" class="parallax-wrap bigger">
                    <div id="start-site" class="parallax-element">
    <span data-hover="<?php echo esc_attr( andra_get_theme_options('clapat_andra_preloader_caption_click') ); ?>"><?php echo wp_kses_post( andra_get_theme_options('clapat_andra_preloader_caption_start') ); ?></span>
    </div>
                    </div>      
          </div>
          </div>
        </div>

    <?php } ?>

    I bolded what you need to add


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • cristian replied

    thank you. I will try that. 

    Are you suggesting to change the actual header.php in the theme editor? ( I have a little respect of changing the actual core files) If I do this, I would have to activate the child theme for Andra, correct?

    Or is there a place where I can add this as additional css?

    thank you

    sandra

  •  1,810
    Support replied

    Hi Cristian,

    This is not additional CSS is actually modifying the php code to do the change you requested.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Boris Wenzel replied

    Hi,

    many thanks for the post. The change will be lost after an update?

    Second question: This works for the satelite theme?

    Best regards

    Boris

  • Boris Wenzel replied

    Hi,

    I am so sorry, in the satelite theme customizer, there is a checkbox for enable the preloader.

    Problem solved


    Best regards

    Boris

  •  1,810
    Support replied

    Ok not a problem Boris

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy