• Resolved veliyandeliyski

    (@veliyandeliyski)


    Hello everyone,

    Currently, when the preloader is turned on, it only appears on the homepage, how to make it work on every page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hii there,

    You can try a preloader plugin like this:

    https://en-au.wordpress.org/plugins/the-preloader

    Thanks!

    You can change the code in header.php
    comment out first if statement lines ~41 and 51

    //if ( is_front_page() && ! is_customize_preview() ) :
    
    	$zerif_disable_preloader = get_theme_mod( 'zerif_disable_preloader' );
    
    	if ( isset( $zerif_disable_preloader ) && ( $zerif_disable_preloader != 1 ) ) :
    		echo '<div class="preloader">';
    			echo '<div class="status">&nbsp;</div>';
    		echo '</div>';
    		endif;
    
    	//endif;
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preloader on all pages?’ is closed to new replies.