Skip to content

Instantly share code, notes, and snippets.

@kloon
Created December 27, 2012 08:16
Show Gist options
  • Save kloon/4386516 to your computer and use it in GitHub Desktop.
Save kloon/4386516 to your computer and use it in GitHub Desktop.
WooCommerce theme wrapper
add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);
function my_theme_wrapper_start() {
echo '<div class="fixed">';
echo '<div class="content-home-right">';
}
function my_theme_wrapper_end() {
echo '</div>';
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment