• ainis

    (@ainis)


    Hi!

    On home page Sidebar is showing correctly on left side , but on any other shop pages
    categories are showing on the right side.
    How can I change Shop page sidebar location from right side to the left side ?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author VW THEMES

    (@vowelweb)

    Hello @ainis,

    You have to edit the code files and you have to change the code.for this you have to make the changes in the child theme so that your changes does not affect the theme updation.

    Thanks.

    Thread Starter ainis

    (@ainis)

    Do you know in which theme file category I need to make an edit and to which code?

    Theme Author VW THEMES

    (@vowelweb)

    Hello @ainis,

    Please follow the below steps to change the code in your theme files.

    Go to theme folder >> Woocommerce folder >> open “archive-product.php” file >> Cut the code from L114 to L118 and paste it on L33.

    Go to theme folder >> Woocommerce folder >> open “single-product.php” file >> Cut the code from L63 to L67 and paste it on L36.

    Thanks.

    Thread Starter ainis

    (@ainis)

    On “archive-product.php” file after pasting on L33 , error shows up on L47 .
    This is the L47 –> <?php }else if($vw_kids_theme_lay == ‘Right Sidebar’){ ?>
    Please look at image with whole code.
    Error image

    Theme Author VW THEMES

    (@vowelweb)

    Hello @ainis,

    Please add the below code in the archive-product.php file L33

    <?php if ( 'Disable' != $vw_kids_woocommerce_shop_page_sidebar ) {?>
    <div id="sidebar" class="col-lg-4 col-md-4">
    <?php dynamic_sidebar('woocommerce-shop-sidebar'); ?>
    </div>
    <?php }?>

    Then add the below code in the single-product.php file L36

    <?php if ( 'Disable' != $vw_kids_woocommerce_single_product_page_sidebar ) {?>
    <div id="sidebar" class="col-lg-4 col-md-4">
    <?php dynamic_sidebar('woocommerce-single-sidebar'); ?>
    </div>
    <?php }?>

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shop page sidebar – position from right to left’ is closed to new replies.