Home › Support Forums › Theme Support › Pinboard › WooCommerce and Pinboard theme? › Reply To: WooCommerce and Pinboard theme?
Hi Daniel, #level200,
I am struggling to make the wrapping work. I followed the manual posted here however I cannot seem to make it work.
I am using a child theme of pinboard, created a new function.php in the child theme directory and put the following code in:
<?php
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
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 '<section id="container">';
}
function my_theme_wrapper_end() {
echo '</section>';
}
?>
This did not help. I tried to use “content” id instead of “container”, which made the side bar appear correctly, however, the products are now aligned on the far right of the page (as if within the right sidebar, which I am not using), while leaving the center content blank:
I have also tried to use the “full length” template for product page, but it left the page with sidebar.
Could you please clarify what exactly should I put into the child function.php?
Thank you in advance, your help would be much appreciated π