Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1337122

    Hi,

    I hope you can help us to find the right files which we nee to edit.
    Between the “Product details” and “Related items” we would like to add another container with text over the entire width. So over the entire width, above the green background. We cannot find in which file the construction of this product detail page takes place.

    Hope you can help us :-)

    #1337124

    Hey,

    Thanks for contacting us!

    Please add following code to bottom of functions.php file of your child theme – https://kriesi.at/documentation/enfold/child-theme/

    add_action( 'woocommerce_after_single_product_summary', 'avia_custom_section_above_related', 19);
    function avia_custom_section_above_related(){
    	echo "YOUR CONTENT HERE";
    
    }

    Regards,
    Yigit

    #1337495

    Hi Yigit,

    Thanks for your reply. Yes this way we have alredy tried but then the “content” is not a seperate section. It is getting placed into the “product section”. But what we want is a complete new section (full width background) just like the related products at the bottom.

    See my link to see how it is looking now.

    #1337525

    Hi,

    Could you please try using the code as following?

    add_action( 'woocommerce_after_single_product_summary', 'avia_custom_section_above_related', 21);
    function avia_custom_section_above_related(){
    	echo '</div></div></div><div class="container"><div style="padding:40px; background:#fff;">YOUR CONTENT HERE</div></div>';
    }

    This would display your content full width and would inherit container width :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.