php - WooCommerce Featured Product Code Modification -
there 2 parts question:
where featured products code in woocommerce plugin? have seen previous posts suggest \wp-content\plugins\woocommerce\classes\widgets\class-wc-widget-featured-products.php, doesn't exist in current version 2.1. can here?
by default, featured products on homepage aligned left. want edit code align center. may obvious when can see code, idea how this?
thanks help!
if you're looking woocommerce widget classes, it's in \wp-content\plugins\woocommerce\includes\widgets
it seems featured products widget has been removed. can use woocommerce products replacement configuring show featured products.
and file widget class-wc-widget-products.php.
you copy widget class , make featured products widget , modify center aligned or create entirely different template display widget wc_get_template( 'content-widget-featured-product.php', array( 'show_rating' => $show_rating ) );
files located in \wp-content\plugins\woocommerce\templates
also, don't forget include custom widget class if add 1 in \wp-content\plugins\woocommerce\woocommerce.php include_widgets()
Comments
Post a Comment