Skip to content

Instantly share code, notes, and snippets.

@krmd
Created January 28, 2015 19:24
Show Gist options
  • Save krmd/00ac4b01bd8dd794288e to your computer and use it in GitHub Desktop.
Save krmd/00ac4b01bd8dd794288e to your computer and use it in GitHub Desktop.
Add WooCommerce support to Themeforest Rabia
add_action( 'woocommerce_before_main_content', 'before_rabia_shop' );
function before_rabia_shop(){
echo '<section class="full-page-section global-section"><div class="row"><div class="col-md-2 navigation visible-md-block visible-lg-block">';
get_sidebar();
echo '</div><div class="col-md-10">';
}
add_action( 'woocommerce_after_main_content', 'after_rabia_shop' );
function after_rabia_shop(){
echo '</div></div></section>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment