mirror of
https://github.com/10h30/ycb.vn.git
synced 2026-07-19 06:33:59 +09:00
Add sidebar for Woocommerce pages
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php //<~ do add in
|
||||
/**
|
||||
* WooCommerce Template
|
||||
*
|
||||
* Template used for all WooCommerce views in order to avoid using Genesis Connect
|
||||
* Save this into `themename/woocommerce.php`
|
||||
*
|
||||
*/
|
||||
|
||||
//* Add WooCommerce content output
|
||||
if ( function_exists( 'woocommerce_content' ) ) {
|
||||
// Remove standard post content output
|
||||
remove_action( 'genesis_loop', 'genesis_do_loop');
|
||||
|
||||
// Replace the default Genesis loop with WooCommerce's
|
||||
add_action( 'genesis_loop', 'woocommerce_content' );
|
||||
}
|
||||
|
||||
genesis();
|
||||
Reference in New Issue
Block a user