Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save omurphy27/3a1757f895c592f88412 to your computer and use it in GitHub Desktop.
Save omurphy27/3a1757f895c592f88412 to your computer and use it in GitHub Desktop.
WP WooCommerce Override Container Hooks for Single Product.php
<?php
add_action('woocommerce_before_main_content', 'arom_before_main_content');
function arom_before_main_content() {
echo '<div class="main-bg no-top-banner">
<div class="container">
<div id="content" class="row" >
<div id="main" class="interior col-sm-12" >';
}
add_action('woocommerce_after_main_content', 'arom_after_main_content');
function arom_after_main_content() {
echo '</div><!-- Close Main -->
</div><!-- Close Row -->
</div><!-- Close Container -->
</div><!-- Close Main-BG -->';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment