• Resolved superflippy

    (@superflippy)


    I’m using the WP Blocks plugin to style this page. When the page is not designated as the main WooCommerce shop page, it works fine. But when I go into the WooCommerce settings and set this page as the Shop page, it doesn’t load the WP Blocks stylesheet anymore.

    Here’s an example of how the page is supposed to look: https://staging.embrace.gallery/debbie-black/

    When I make a different page the main shop page, the styles work again. Do I have to have a main shop page for WooCommerce to work? Can I just make a blank, hidden page my shop page so the styles on this page don’t get messed up? Or is there some way to make it load the stylesheets properly?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @superflippy,

    This can be a bit tricky. When a page is set to be the shop page, WooCommerce replaces it with an archive of products. It becomes a “post type archive” for the products in the store. That’s why it doesn’t act like a normal WordPress page.

    One way some store owners handle this is to go on and assign a “placeholder” page to be the shop page. Then redirect this “placeholder” to the actual page you’ve designed.

    This StackOverflow answer has a snippet you can use for this. You’d need to change it up just a bit to fit the page you’ve created, but hopefully, it’ll get you pointed to a solution. You can add the snippet to your theme’s functions.php file or with the Code Snippets plugin.

    https://stackoverflow.com/a/40384822/8533058

    Take care

    Hi @superflippy,

    Hopefully, you were able to clear up this issue. Since it’s been a while since we last heard from you, I’m going to mark this thread resolved.

    If you still have trouble, please feel free to open up a new topic. We’d be happy to jump back in and help you out.

    Take care

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Setting page as WooCommerce shop disables styles’ is closed to new replies.