-
-
Save pije76/c74758b871c3d3df0566b7b48cb4136e to your computer and use it in GitHub Desktop.
Display the "Sold By: Vendor Name" of Product Vendors under the product name on single product page & Hide the original one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( class_exists( 'WC_Product_Vendors_Vendor_Frontend' ) ) { | |
add_action( 'woocommerce_single_product_summary', array( WC_Product_Vendors_Vendor_Frontend, 'add_sold_by_single' ), 5 ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
em.wcpv-sold-by-single:nth-of-type(2) { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment