-
AuthorPosts
-
October 1, 2014 at 4:36 pm #328253
Hi all,
I had a code to display a sidebar on the woocommerce product page.
Since the update to 3.0, AWESOME UPDATE! Gonna sell you allot of enfolds this way :)Anyhow, the code below should give the wc product page a sidebar on the right, however now it doesnt, I think its breaking my code.
Shop image is full width! and the sidebar is halfway donw the page etc etc…The code I have is:
# # wrap single product image in an extra div # add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2); add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20); function avia_add_image_div() { echo "<div class='four units single-product-main-image alpha'>"; } function avia_close_image_div() { global $avia_config; $avia_config['currently_viewing'] = "shop_single"; echo "</div>"; } # # wrap single product summary in an extra div # add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25); add_action( 'woocommerce_after_single_product_summary', 'avia_close_summary_div', 3); function avia_add_summary_div() { echo "<div class='five units single-product-summary'>"; } function avia_close_summary_div() { echo "</div>"; //close out the summary echo "<div class='three units single-product-sidebar'>"; get_sidebar(); echo "</div>"; }
Any updates for this available?
Kind regards,
ThomasOctober 2, 2014 at 8:11 pm #329201Hi borkent!
Your login information does not work. Please provide us a correct username and password.
Best regards,
AndyOctober 3, 2014 at 10:18 am #329580strange.. didnt work for me either :)
Anyhow, I changed password, same credentials work now, and tested!
sorry
October 3, 2014 at 3:03 pm #329712Hi!
Please add following code to Quick CSS
.five.units.single-product-summary { width: 40%; } .four.units.single-product-main-image { width: 20%; }
Cheers!
YigitOctober 7, 2014 at 11:57 am #331507thx Yigit, kinda worked.. had to tweak some things and also with responsiveness I still need to do some edits…
However one thing I noticed is that a certain function isnt working anymore with this….// Removes tabs from their original location remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); // Inserts tabs under the main right product content add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 60 );
I am trying to get the tabs under the product image and span the width up to the sidebar.
All I need to do now is take the tabs out of the summary div and move it below.Any idea on this? not sure why this straight forward remove add action is breaking the site.
Any help appreciated!
October 7, 2014 at 12:18 pm #331516example:
October 8, 2014 at 4:43 am #332093Hey!
Thank you for the screenshot.
Please refer to this link: https://kriesi.at/support/topic/single-product-page-sidebar-not-showing-up/#post-332092
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.