Last active
July 26, 2019 22:40
-
-
Save Luminus/df3c23b8427debd29c2b6ae49806d8b5 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 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 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