related products remove tag
-
We have enabled the afterpay tag to show on single product pages, but it shows on the product and related products. We use owl carousel for our related products and showing the tag results in significant css issues.
Our developer suggested adding a function in our theme’s function.php file as below and calling the function as a possible fix. This fix does not work. Could you please advise how to disable the afterpay tag on related products?
function afterpay-fix() {
remove_action( ‘woocommerce_single_product_summary’, array($gateway, ‘print_info_for_product_detail_page’), 15, 0 );
remove_action( ‘woocommerce_after_shop_loop_item_title’, array($gateway, ‘print_info_for_listed_products’), 15, 0 );
}
- The topic ‘related products remove tag’ is closed to new replies.