• Resolved mariatr

    (@mariatr)


    Hi

    I am new to woocommerce and I want to customize my woocommerce shop. I would like to hide the sidebar from the shop and product pages, but leave it on the blog page. I tried deleting all widgets but that just deleted the sidebar on every page.
    I have tried a few CSS codes with no luck, and I am not able to see the php file to edit it in there.
    Furthermore, I would like to edit the appearance of the buttons etc. in the shop page, is that possible?
    Could anyone be so kind to let me know a way to resolve this issue without too much code?
    I use the yootheme, but the builder cannot be used in the shop.

    Please let me know if you need more details.

    Thanks in advance..

    /Maria

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    WordPress themes are made up of different templates, so you will need to edit the templates where a sidebar is displayed.

    You can use this plugin to find out the correct template files

    For example, in a typical WordPress theme you may need to edit index.php, page.php, single.php, archive.php, home.php and so on.

    Open a template file to edit it and then locate the line that looks like this:

    <?php get_sidebar(); ?>

    If your theme comes with multiple sidebars, then you will see different instances of this code with a sidebar name inside the function. For example:

    <?php get_sidebar(‘footer-widget-area’); ?>

    Delete the line that represents the sidebar that you don’t want to display.

    Now, save and upload the file back to your website. Repeat the process for all template files responsible for displaying different pages on your website.

    Once finished, you can go to your website and see it in action.

    You may notice that while sidebars are gone, your content area is still appearing with the same width leaving the sidebar area empty.

    Thread Starter mariatr

    (@mariatr)

    Hi

    Thank you for your response.
    I’m not sure I have the opportunity to edit and write a php code, but I will look into the plugin you sent, and maybe figure it out that way ??

    Hey @mariatr,

    You can likely do this with CSS as you mentioned. If you’ll send over the URL to your shop page, I’d be happy to take a look and see if that’s possible in this case.

    Thanks

    Hi @mariatr,

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please let open up a new topic and we’ll be happy to help out.

    Cheers

    Thread Starter mariatr

    (@mariatr)

    Hi

    Thanks for your reply!
    I resolved the issue by using a different shop theme ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customizie woocommerce shop+hide sidebar’ is closed to new replies.