Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions inc/addons.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ function chronus_infinite_scroll_render() {
/**
* Set wrapper start for wooCommerce
*/
function chronus_wrapper_start() {
echo '<section id="primary" class="content-area">';
echo '<main id="main" class="site-main" role="main">';
if (!function_exists('chronus_wrapper_start')) {
function chronus_wrapper_start()
{
echo '<section id="primary" class="fullwidth-content-area content-area">';
echo '<main id="main" class="site-main" role="main">';
}
}
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
add_action( 'woocommerce_before_main_content', 'chronus_wrapper_start', 10 );
Expand All @@ -100,9 +103,12 @@ function chronus_wrapper_start() {
/**
* Set wrapper end for wooCommerce
*/
function chronus_wrapper_end() {
echo '</main><!-- #main -->';
echo '</section><!-- #primary -->';
if (!function_exists('chronus_wrapper_end')) {
function chronus_wrapper_end()
{
echo '</main><!-- #main -->';
echo '</section><!-- #primary -->';
}
}
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );
add_action( 'woocommerce_after_main_content', 'chronus_wrapper_end', 10 );
Expand Down