php - WooCommerce Featured Product Code Modification -


there 2 parts question:

  1. 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?

  2. 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

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -