Viewing 5 replies - 1 through 5 (of 5 total)
  • HI,

    Please try post and steps, this will help you to fix the issue.
    https://purothemes.com/support/topic/google-fonts-400-error/

    Thread Starter freddyee

    (@freddyee)

    Hi

    Yeah, when I clear cache and switch to parent theme the error disappear.

    My child style.css is like this

    /*
    Theme Name: OceanWP Child
    Theme URI: https://oceanwp.org/
    Template: oceanwp
    Author: Nick
    Author URI: https://oceanwp.org/about-me/
    Description: OceanWP is the perfect theme for your project. Lightweight and highly extendable, it will enable you to create almost any type of website such a blog, portfolio, business website and WooCommerce storefront with a beautiful & professional design. Very fast, responsive, RTL & translation ready, best SEO practices, unique WooCommerce features to increase conversion and much more. You can even edit the settings on tablet & mobile so your site looks good on every device. Work with the most popular page builders as Elementor, Beaver Builder, Brizy, Visual Composer, Divi, SiteOrigin, etc… Developers will love his extensible codebase making it a joy to customize and extend. Best friend of Elementor & WooCommerce. Looking for a Multi-Purpose theme? Look no further! Check the demos to realize that it’s the only theme you will ever need: https://oceanwp.org/demos/
    Tags: two-columns,right-sidebar,footer-widgets,blog,news,custom-background,custom-menu,post-formats,rtl-language-support,sticky-post,editor-style,threaded-comments,translation-ready,buddypress,custom-colors,featured-images,full-width-template,theme-options,e-commerce
    Version: 1.7.4.1584053193
    Updated: 2020-03-12 22:46:33
    */

    /* =Theme customization starts here

    what can I do ?

    Hi,

    It seems you have added some custom code that causing the issue, please try to remove the code and check.

    Thread Starter freddyee

    (@freddyee)

    I have this on my child functions.php file:

    <?php
    // Exit if accessed directly
    if ( !defined( ‘ABSPATH’ ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment markers above or below:

    if ( !function_exists( ‘chld_thm_cfg_locale_css’ ) ):
    function chld_thm_cfg_locale_css( $uri ){
    if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . ‘/rtl.css’ ) )
    $uri = get_template_directory_uri() . ‘/rtl.css’;
    return $uri;
    }
    endif;
    add_filter( ‘locale_stylesheet_uri’, ‘chld_thm_cfg_locale_css’ );

    if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
    function chld_thm_cfg_parent_css() {
    wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’, array( ) );
    }
    endif;
    add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’, 10 );

    if ( !function_exists( ‘child_theme_configurator_css’ ) ):
    function child_theme_configurator_css() {
    wp_enqueue_style( ‘chld_thm_cfg_child’, trailingslashit( get_stylesheet_directory_uri() ) . ‘style.css’, array( ‘chld_thm_cfg_parent’ ) );
    }
    endif;
    add_action( ‘wp_enqueue_scripts’, ‘child_theme_configurator_css’, 10 );

    // END ENQUEUE PARENT ACTION

    function sb_dequeue_intents() {
    wp_dequeue_script( ‘ctf_twitter_intents’ );
    }
    add_action( ‘wp_footer’, ‘sb_dequeue_intents’ );

    function omit_twitter_script($provider, $url, $args) {
    //get the hostname of the oEmbed endpoint provider being called
    $host = parse_url($provider, PHP_URL_HOST);
    //check to see that hostname is twitter.com
    if (strpos($host, ‘twitter.com’) !== false) {
    //adding ?omit_script=true to oEmbed endpoint call stops the returned HTML from containing widgets.js
    $provider = add_query_arg(‘omit_script’, ‘true’, $provider);
    }
    //return the $provider URL so the oEmbed can be fetched
    return $provider;
    }
    add_filter(‘oembed_fetch_url’, ‘omit_twitter_script’, 10, 3);

    function _remove_script_version( $src ){
    $parts = explode( ‘?’, $src );
    return $parts[0];
    }
    add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
    add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );

    // Add image in single product page
    function cfwc_display_custom_field() {
    global $post;
    printf(
    ‘,
    );
    }
    add_action( ‘woocommerce_after_add_to_cart_button’, ‘cfwc_display_custom_field’ );

    add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );
    function custom_override_checkout_fields( $fields ) {
    unset($fields[‘billing’][‘billing_postcode’]);
    return $fields;
    }
    add_filter( ‘woocommerce_shipping_calculator_enable_postcode’, ‘__return_false’ );

    I don’t know much about this subject,please, what code could be causing this ?

    HI,

    Instead of the child theme configurator plugin, I’ll suggest you use the official oceanwp child theme – https://docs.oceanwp.org/article/90-sample-child-theme
    And check it works or not.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ERR_ABORTED 400’ is closed to new replies.