I have moved the product summary on the single product page using this:
add_action( 'woocommerce_single_product_summary', 'custom_the_content', 35 );
function custom_the_content() {
echo the_content();
}
Now I need to wrap the content in a div, so I tried
echo '<div class="mydiv">' . the_content() . '</div>';
but this results in the content not being wrapped by the div, instead the div is empty and just added to the html, with the content below. How can I wrap the content into my div?