• Resolved thexamex

    (@thexamex)


    Hello, I want to remove this css file from being loaded.

    /wp-content/plugins/woocommerce-gateway-paypal-express-checkout/assets/css/wc-gateway-ppec-frontend.css?ver=5.3.1

    Witch code should I add to functions.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Aashik P – a11n

    (@aashik)

    Hello @thexamex

    I wouldn’t recommend this unless you know what you’re doing as it could have unintended consequences to dequeue a file that’s required by the plugin, but the following snippet should work:

    // Dequeue PayPal Checkout front-end CSS
    function dequeue_pp_checkout_style() {
       wp_dequeue_style( 'wc-gateway-ppec-frontend' );
    }
    add_action( 'wp_print_styles', 'dequeue_pp_checkout_style', 100 );

    P.S: I found that it was included here: /includes/class-wc-gateway-ppec-cart-handler.php#L438

    And got the function to dequeue that style in Function Reference/wp dequeue style

    Plugin Support Aashik P – a11n

    (@aashik)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dequeue the “wc-gateway-ppec-frontend-cart.css” file’ is closed to new replies.