• Resolved startechmarketing

    (@startechmarketing)


    Hello for two days I try to hide the sidebar, on a test site the css code hides it but the live site not.

    this code on the test site works but same code on production site does not

    .single-product.layout-right-only .right .vamtam-body-sidebar .widget {
        visibility: hidden;
    }

    Can someone help me, I have code snippets also if that is possible, I would like to get the full width on the product page, there is a brand page I want the sidebar to appear so they can switch brands or return to the shop

    Thanks

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @startechmarketing,

    Thank you for reaching out to us!

    I understand you would like to only hide the sidebar in your product page.

    You could try going to [project-name]/wp-content/themes/[theme-name]/woocommerce/single-product.php and look for this line:

    do_action( 'woocommerce_sidebar' );

    And remove the line or comment it out.

    Let us know how it goes!

    Thread Starter startechmarketing

    (@startechmarketing)

    I have done that and place the file in the theme directory /themname/woocommerce/single-product.php but it still shows

    Hi there @startechmarketing ??

    Hiding sidebar only on Product Page

    As a next step, I’d recommend reaching out to the currently active theme’s support channel.

    Linked here is a visual guide of the single product page, where the sidebar is not included by default.

    Below, I’m sharing a screenshot highlighting that section, for reference.

    Direct link to image: https://snipboard.io/QAGD0t.jpg

    As an alternative, WooCommerce Block Themes let you completely customize every part of your online store. Create exactly the shopping experience you want without touching a line of code.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

    Thread Starter startechmarketing

    (@startechmarketing)

    thanks @anastas10s the theme does not have much support and this would be considered custom, but I am sure with custom css or code snippet it can be achieved.

    according to your screenshot it shows close to the css if you look at my original post I have css, I had it working but now it doesn

    .single-product.layout-right-only .right .vamtam-body-sidebar .widget {
        visibility: hidden;
    }
    

    also i removed the do action call for the sidebar in /themname/woocommerce/single-product.php?

    but also this is not working however I did put a message in

    /themname/woocommerce/single-product.php? and the message shows

    maybe my css is wrong, and you can help or help with a code snippet only for the single-product page

    i appreciate any help

    as far as changing themes the company won’t do that after all the hours in designing the site

    Thread Starter startechmarketing

    (@startechmarketing)

    ok I found it

    
    aside.right.vamtam-body-sidebar  {
        visibility: hidden;
    }

    but now my page is not full width.. i show you on a test site (old copy of the site) a screenshot

    as you see on the old test site (colors in Orange) it is full width https://ibb.co/8K8H5gG

    in the inspector it uses vamtam-main layout-full https://ibb.co/n11JGF0

    I wondered yesterday how that is achieve, on the production site when you add something in the woocommerce widget area right then it changes from full width (sometimes) but on the old test site there is code in the woocommerce widget area right but it is still using the full width

    on the production site see this image https://ibb.co/0XcJNqs which uses not full width

    I have found no settings in the theme to change that behavior nor in the docs

    Hi there @startechmarketing ??

    the theme does not have much support and this would be considered custom, but I am sure with custom css or code snippet it can be achieved.

    Please note that we can’t provide support for code customization as per our support policy. Still, if you need customization, we do our best to offer advice and direct you to appropriate resources. Based on the feedback we get from our customers, we highly recommend contacting one of the services on our Customization page.

    I have found no settings in the theme to change that behavior nor in the docs

    As the issues described here appear to be theme related, it is best to reach out to its support channel.

    Thank you.

    Thread Starter startechmarketing

    (@startechmarketing)

    I know you like to market your product but a lot of companies are startups and can’t afford extra expense to custom code

    at least we know now that woocommerce does not offer support to non paying customers., which is unfortunate – there should be some free forums you suggest or create for the people , we were considering purchasing several of your plugins but not now

    anyways I solved this using a custom sidebar plugin only to display on the brands archive page?

    and replaced the default woocommerce right sidebar with new custom brands sidebar

    Thread Starter startechmarketing

    (@startechmarketing)

    unsatisfactory resolved

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hiding sidebar only on Product Page’ is closed to new replies.