Hello guys,
I am creating an e-commerce site (generatepress pro + elementor pro) for which I would like to have a sidebar on the single product page ONLY on left side of product tabs: http://prnt.sc/nxj549.
In part I succeeded, in the following way:
– In apparence -> layout -> woocommerce -> I have unchecked the “Display product tabs” option
– I created a section template with elementor where in the left column I inserted the product tabs (with the appropriate widget) and in the right one an image
– I reinserted the bproduct tabs on the single product page by entering (via code snippet) the following code:
add_action( ‘woocommerce_after_single_product_summary’, ‘my_product_tab’, 10 );
function my_product_tab() {
echo do_shortcode(‘[elementor-template id=”202″]’);
}
Everything seems to work, BUT:
– if I open the product page, this is what I get: https://prnt.sc/nxj49v
– if I click on any tab (for example, additional information), everything goes well: http://prnt.sc/nxj549
Any idea about it?
Thanks for your help