Last active
February 9, 2016 13:53
-
-
Save frankschrijvers/6898b417f8556a3cb5c5 to your computer and use it in GitHub Desktop.
Display the WooCommerce sidebar
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 | |
//* 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