Before you ask please READ THIS

Layout on Shop page affects Single Product Page as well

edited December 2014 in Fame Posts: 1
Howdy,

I have a small problem, i'd like the layout on the shop page to have a sidebar on the left, but the individual products themselves to NOT have a sidebar. Is this possible? If I set the shop page to a shop page LEFT SIDEBAR setup then it affects the single pages as well.

-Will

Comments

  • AirAir
    Posts: 10,970
    Hello Sir :-)

    To do it, Activate your sidebar in shop page, and make such change in code:
    File: fame\advance\utilities\custom.php
    Line: ~71
    Change:

    elseif($shop_with_sidebar){
    $meta_id = woocommerce_get_page_id( 'shop' );
    $custom_sidebar = $apollo13->get_meta('_sidebar_to_show', $meta_id);
    if(strlen($custom_sidebar) && $custom_sidebar !== 'default'){
    $test = $custom_sidebar;
    }
    }
    To:

    elseif($shop_with_sidebar){
    if(is_shop()){
    return false;
    }
    $meta_id = woocommerce_get_page_id( 'shop' );
    $custom_sidebar = $apollo13->get_meta('_sidebar_to_show', $meta_id);
    if(strlen($custom_sidebar) && $custom_sidebar !== 'default'){
    $test = $custom_sidebar;
    }
    }
    This will do the trick.

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion