1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. The arrow-right.svg image returns ‘Mixed Content’ error
  1. Home
  2. Knowledge Base
  3. Troubleshooting Add-Ons Ultimate
  4. The arrow-right.svg image returns ‘Mixed Content’ error

The arrow-right.svg image returns ‘Mixed Content’ error

If you get a console error telling you that the ‘arrow-right.svg’ resource is being served over HTTP instead of HTTPS, you can add a function like this to your functions.php file:

<?php
// Replace HTTP with HTTPS in arrow resource
function prefix_filter_cart_remove_linked_product( $arrow_right, $cart_item_key ) {
return str_replace( 'http://', 'https://', $arrow_right );
}
add_filter( 'pewc_filter_cart_remove_linked_product', 'prefix_filter_cart_remove_linked_product', 10, 2 );

Was this article helpful?

Related Articles