-
AuthorPosts
-
July 3, 2015 at 11:43 pm #468252
Hello!
I was trying to put a left sidebar on every single product page. I tried to follow the suggestions here, which worked for me. However, it affects the Related Product page, so I have to hide the related products pages instead. Is there anyway, you can make the single product page with sidebar in future updates? That will save us some time.
Is there anyway you can integrate the
# # wrap single product image in an extra div # function avia_add_image_div() { echo "<div class='single-product-main-image alpha'>"; } function avia_close_image_div() { echo "</div>"; } # # wrap single product summary in an extra div # function avia_add_summary_div() { echo "<div class='single-product-summary'>"; } function avia_close_summary_div() { echo "</div>"; //close out the summary get_sidebar(); } function avf_product_sidebar_layout_mod($layout){ if( is_single() )$layout = "sidebar_left"; return $layout; } add_action('init', 'ava_product_sidebar_mod'); function ava_product_sidebar_mod() { add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2 ); add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20 ); add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25 ); add_action( 'woocommerce_after_single_product_summary', 'avia_close_summary_div', 3 ); add_filter( 'avf_product_sidebar_layout', 'avf_product_sidebar_layout_mod', 5); }
July 5, 2015 at 11:36 am #468525Hey dj1arry!
Thank you for using Enfold.
That code is no longer working. Please follow the solution provided here:
https://kriesi.at/support/topic/single-product-page-sidebar-not-showing-up/#post-331433I provided the old thread. Please ignore the link above. Go to this link: https://kriesi.at/support/topic/single-product-page-is-strange-sidebar-appears-under-product/#post-451940
Follow the code modifications below the post.
Regards,
IsmaelJuly 6, 2015 at 7:36 pm #469209Hi Ismael,
Thanks for replying. I actually followed the codes form the second link you provided. However, it messed up the Related Products. enabled it again so you can see. Please click this link. http://shop.greencastlecabinetry.com/product/almond/
Also, I noticed that when I click on any of the link under the Product Category, the texts are flushed to the right and I want them to be aligned on the left. http://shop.greencastlecabinetry.com/product-category/european-style/
Thank you so much!
Larry
July 6, 2015 at 8:03 pm #469217Hi Ismael,
For the problem below, I just decided to keep the right sidebar on the right to make it less complicated. But I still want to fix the Related Products. And how do I increase the number of products shown under the Related Products.
Also, I noticed that when I click on any of the link under the Product Category, the texts are flushed to the right and I want them to be aligned on the left. http://shop.greencastlecabinetry.com/product-category/european-style/
Thanks!
LarryJuly 7, 2015 at 10:02 am #469494Hi!
Please post the login details here. We will implement the right sidebar for you.
Also, I noticed that when I click on any of the link under the Product Category, the texts are flushed to the right and I want them to be aligned on the left. http://shop.greencastlecabinetry.com/product-category/european-style/
Can you please provide a screenshot of this issue?
Cheers!
IsmaelJuly 7, 2015 at 10:06 am #469495Hi Ismael,
I got the sidebar sorted out. My problem now is moving the related products and upset products under the single products summary. Right now its very messy. Please look on the link below.
http://shop.greencastlecabinetry.com/product/antique-white/
Thanks!
LarryJuly 7, 2015 at 10:10 am #469499Login below:
Thanks!July 8, 2015 at 11:23 am #470126Hey!
seems that it is exactly as you wish, because your single product description is first, then I see “You may also like …” etc.
Could you fix it?Best regards,
AndyJuly 8, 2015 at 6:15 pm #470441Hey Andy,
It’s not quite what I need. As you see, instead of displaying 5 images in one row, the last image goes to the next row. I’m also thinking that it’s best to put the “You may also like” and “Related Products” on the main body where the single product is displayed and not under the alternate content at the bottom. Something like on this link http://www.practicalecommerce.com/wp-content/uploads/2014/04/8-Woo-Recommendation.png
Thanks!
LarryJuly 10, 2015 at 10:18 am #471370Hey!
Alright. Before we start with the modification, I want to know if you remove the code we suggested above. I look for it in the functions.php file but it’s not there. We need to confirm this because if we put the same function, the site will produce an error and we will not be able to edit the file again without FTP access.
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.