Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #919413
single product page
Closed

Comments

  •  2
    BDS started the conversation

    hii,

    could we have sidebar on single product page. Please help us to accomplish that.

    Thank you

  •  7,092
    Oliver replied

    HI!

    Yes, pls. check Page Sidebar setting in product options. 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  2
    erecske replied

    I have 206 products. Do I have to go through every single product page to set the sidebar? This is insane!

  • [deleted] replied

    We can give you a php code to enable sidebar on all products pages but you will can't disable it.

  •  2
    erecske replied

    Well, that would be great. I don't want to disable it. :)

  • [deleted] replied

    Do you need left or right sidebar?

  •  2
    erecske replied

    Left please.

  • [deleted] replied

    You need to install child theme, copy woocommerce.php template from parent TheGem theme to child and in this template in child after code:

        $thegem_sidebar_stiky = $thegem_item_data['sidebar_sticky'] ? 1 : 0;
        $thegem_sidebar_position = thegem_check_array_value(array('', 'left', 'right'), $thegem_item_data['sidebar_position'], '');
    add next:
        if(is_product()) {
            $thegem_sidebar_position = 'left';
        }

  •  2
    erecske replied

    Oh, I've finally understood...

  •  2
    erecske replied

    It works. Thank you!