Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display the WooCommerce sidebar
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Display the WooCommerce sidebar
function wpstudio_woo_sidebar() {
if ( ! dynamic_sidebar( 'woo_primary_sidebar' ) && current_user_can( 'edit_theme_options' ) ) {
genesis_default_widget_area_content( __( 'WooCommerce Primary Sidebar', 'genesis' ) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment