Reply To: WooCommerce and Pinboard theme?

#19618
ouzoliny
Participant

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:
Screenshot of the wrapping error

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 πŸ˜‰