PHP

Fix Bridge – Velocità caricamento

  1. guarda bridgeshoot.com/shop / per prima cosa sistema i permessi con il file chmod

Create this files in your child theme: custom_js.js, custom_css.css, default_dynamic.js, style_dynamic.css. style_dynamic_responsive.css

3. View your site’s viewsource, open and copy custom_js.php, custom_css.php, default_dynamic.php, style_dynamic.php and style_dynamic_responsive.php content to it’s correspnding files created in child theme

4. Last step is to paste this code to your child theme’s functions.php file:

function qode_styles_child() {
    wp_deregister_style('style_dynamic');
    wp_register_style('style_dynamic', get_stylesheet_directory_uri() . '/style_dynamic.css');
    wp_enqueue_style('style_dynamic');

    wp_deregister_style('style_dynamic_responsive');
    wp_register_style('style_dynamic_responsive', get_stylesheet_directory_uri() .'/style_dynamic_responsive.css');
    wp_enqueue_style('style_dynamic_responsive');

    wp_deregister_style('custom_css');
    wp_register_style('custom_css', get_stylesheet_directory_uri() . '/custom_css.css');
    wp_enqueue_style('custom_css');
}

function qode_scripts_child() {
    wp_deregister_script('default_dynamic');
    wp_register_script('default_dynamic', get_stylesheet_directory_uri() . '/default_dynamic.js');
    wp_enqueue_style('default_dynamic', array(),false,true);

    wp_deregister_script('custom_js');
    wp_register_script('custom_js', get_stylesheet_directory_uri() . '/custom_js.js');
    wp_enqueue_style('custom_js', array(),false,true);
}

add_action( 'wp_enqueue_scripts', 'qode_styles_child', 11);
add_action( 'wp_enqueue_scripts', 'qode_scripts_child', 11);