add_action('wp_head', 'px_front_preloader_loader_html', 9999); // Hook preloader JS into footer add_action('wp_footer', 'px_front_preloader_loader_js', 9999); // Function to render preloader HTML and styles function px_front_preloader_loader_html(){ // Get mobile theme color option $divi_PX_mobilebar_menu_option = et_get_option('divi_px_mobilebar_menu_option','on'); $divi_PX_mobilebar_menu_option_color = et_get_option('divi_px_mobilebar_menu_option_color','#f9a392'); // Output meta theme-color if enabled if( $divi_PX_mobilebar_menu_option == 'on' ){ ?>