-
AuthorPosts
-
April 15, 2015 at 9:26 am #428754
Hello,
I really need a sidebar on my productpages but I can’t seem to find it. How can I make it appear?
Thanks.
- This topic was modified 9 years, 7 months ago by JerrelZ.
April 15, 2015 at 9:05 pm #429224Hey JerrelZ!
By default the sidebar should display on the left below the product images. If you want to make it on the right then see here, http://kriesi.at/documentation/enfold/product-page-left-or-right-sidebar/.
Also make sure you have some widgets set to the “Single Product” widget area in Dashboard > Appearance > Widgets.
Best regards,
ElliottApril 19, 2015 at 8:54 am #430840This reply has been marked as private.April 20, 2015 at 3:08 pm #431315Hi!
Replace this line of code in the functions.php file:
function avia_change_post_layout($layout, $post_id){ global $woocommerce; if(is_product()) $layout['current']['main'] = "sidebar_right"; return $layout; }
with this:
function avia_change_post_layout($layout, $post_id){ global $woocommerce; if(is_product()) $layout['current']['main'] = "sidebar_left"; return $layout; }
Regards,
IsmaelApril 20, 2015 at 8:05 pm #431554Hello Ismael,
I already had this line of code in the functions.php file. It doesn’t look how it should with this code.
Gr, Jerrel.
April 21, 2015 at 9:13 am #431829Hey!
Check the code. The layout should be sidebar_left, not sidebar_right. Please post the login details here. We would like to check it.
Best regards,
IsmaelApril 22, 2015 at 10:08 am #432663This reply has been marked as private.April 23, 2015 at 6:56 am #433255Hey!
Looks like the modifications are no longer working since we enabled the advance layout builder for post. Please add this in the Quick CSS field:
.single-product aside.sidebar, .single-product aside.sidebar .inner_sidebar { border-left: 0 !important; } .single-product aside.sidebar .inner_sidebar { margin-left: 0; margin-right: 50px !important; } .single-product aside.sidebar { border-right: 1px solid; } #top .product_column_4 .products .product { margin: 0 1% 1% 0; width: 24.0%; }
Regards,
IsmaelApril 23, 2015 at 7:57 am #433285Hi Ismael,
It looks better now, but there are still two issues.
– The first on is the border color. It’s black instead gray like the other borders.
– The second one is that the border is not going to the top. There’s some whitespace between the border and the header:http://www.hetzorgpunt.com/product/trippelstoel/
Thanks for your awesome support :)!
- This reply was modified 9 years, 7 months ago by JerrelZ.
April 27, 2015 at 11:06 am #435146Hey!
Very sorry for the delay. Looks like you disabled the sidebar. The filter to change the default page layout is not working for single product pages, that’s why we added the css codes as a workaround. If you want to change the border color, just replace this code:
.single-product aside.sidebar { border-right: 1px solid; }
Add the color value:
.single-product aside.sidebar { border-right: 1px solid #eeeeee; }
If you add the sidebar back, we’ll try to fix the whitespace issue.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.