Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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, 8 months ago by JerrelZ.
    #429224

    Hey 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,
    Elliott

    #430840
    This reply has been marked as private.
    #431315

    Hi!

    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,
    Ismael

    #431554

    Hello 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.

    #431829

    Hey!

    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,
    Ismael

    #432663
    This reply has been marked as private.
    #433255

    Hey!

    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,
    Ismael

    #433285

    Hi 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, 8 months ago by JerrelZ.
    #435146

    Hey!

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.