Support » Plugin: WooCommerce » Creating a custom template for the shop page

  • Resolved topherjamesknoll

    (@topherjamessf)


    I’ve created a PHP file with a template and added all the post types I know to it. However under “Attributes” in the page I use for the main page of the WooCommerce shop, I can’t select the template I’ve built. It shows up on all other pages. Is there a post type I’m leaving out or does WooCommerce somehow block this feature? Or is it something else? I’d really love to add a few things just to the shop page so this would be really useful. Thanks!!!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Kristina

    (@kristinaplauche)

    Automattic Happiness Engineer

    Hi there!

    under “Attributes” in the page I use for the main page of the WooCommerce shop,

    Do you mean the page attributes as you can see in this screenshot:http://cld.wthms.co/I5lmz3 ?

    If so, the list in the parent field drop down is a list of other _pages_ created, not templates.

    It shows up on all other pages

    I’m not exactly sure what you’re seeing on other pages. Could you provide a screenshot?

    Is there a post type I’m leaving out or does WooCommerce somehow block this feature? Or is it something else?

    I’ll need to know more about what you’re experiencing before being able to answer this…if I can answer it. 😉 Happy to try.

    Thread Starter topherjamesknoll

    (@topherjamessf)

    Hi! Thanks for getting back.

    Yes, the screenshot is correct, but normally when I create a template PHP file in my theme it will give me an option to select it on the page. The only page it doesn’t show up on is the main shop page. Mine is http://culturehog.com/shop. Actually, I think it doesn’t show up on any of the WooCommerce pages including the shortcode pages.

    I’m not sure if this is the information that will help. Basically, I want to create a template file that will show up under the Attributes section on the shop page.

    THANKS AGAIN! YOU ARE AWESOME!

    Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    @topherjamessf – the Shop page uses the archive-product.php template file, so that’s the file you’d want to override. The Shop page doesn’t have a ‘Template’ selector like some other pages often have.

    https://docs.woocommerce.com/document/template-structure/

    Thread Starter topherjamesknoll

    (@topherjamessf)

    Okay. That helps a lot. Bummer there’s no template capability though. THANKS!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating a custom template for the shop page’ is closed to new replies.