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.
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?
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
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
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
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
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
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
Hi,
I am so sorry, in the satelite theme customizer, there is a checkbox for enable the preloader.
Problem solved
Best regards
Boris
Ok not a problem Boris
Thank you.
Clapat Support
https://www.clapat.com/
Review Envato Item Support Policy