-
-
Hello,
I want to add sidebar on woocommerce single product pages, i configure sidebar woocommerce in the Widgets area.
Could you please help me?
Thanks
-
Hello,
Please go to your theme files –>wp-content \ themes \ specular \ includes \ core and open codeless_metaboxes.php. Find these lines$metaboxes[] = array( 'id' => 'demo-layout2', //'title' => __('Cool Options', 'codeless-admin'), 'post_types' => array('page', 'post'), //'page_template' => array('page-test.php'), //'post_format' => array('image'), 'position' => 'side', // normal, advanced, side 'priority' => 'high', // high, core, default, low 'sections' => $layoutOptions ); return $metaboxes;
and replace with these :
$metaboxes[] = array( 'id' => 'demo-layout2', //'title' => __('Cool Options', 'codeless-admin'), 'post_types' => array('page', 'post', 'product'), //'page_template' => array('page-test.php'), //'post_format' => array('image'), 'position' => 'side', // normal, advanced, side 'priority' => 'high', // high, core, default, low 'sections' => $layoutOptions ); return $metaboxes;
You will be able now to choose a layout that displays a sidebar on your woocommerce single product pages, see screenshot (https://www.awesomescreenshot.com/image/1433570/ce9686e6734e9613c8eb89351867f351).
Let us know.
Best regards! -
Thanks for your reply, i made the above changes but it still doesn’t work.
On the below page i want the sidebar:
https://thecanopyshop.co.uk/newsite/product/patio-canopy-1-5-projection/Thanks
-
Hello,
Please send us you wp and ftp credentials in a private reply. So we can do it for you.
Best regards!
-
-
-
Hello,
Glad to hear that. Thank you for letting us know.
Best regards! -
Hi, i want to do the same. I want to show sidebar only in the section single procuduct. I made the above change but it still dosen´t work.
Could you help me please?
Thanks,
Daniel C.
-
Hello,
You should make those changes in tower theme files –>wp-content \ themes \ tower \ includes \ core and open codeless_metaboxes.php. The lines you should change are the same as above. Did you turn on the Overwrite the default post layout button and then chosed the sidebar layout for the page? see this screenshot
You should also set the woocommerce sidebar with some widgets to make it visible as a complete sidebar to your page.
Let us know.Best regards!
-
Hi thanks for answer. The changes have done with succes :).
Best regards!
Daniel C.
-
You must be logged in to reply to this topic.