Home Forums WoodMart support forum Page template for custom taxonomy

Page template for custom taxonomy

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #74570

    sarahhellems
    Participant

    Hi, I’m hoping to use the same template used by the shop and product category pages for a custom taxonomy I’m using for products. Is there a particular file name I should use for that or place I should put it?

    #74578

    Artem Temos
    Keymaster

    Hi,

    You can read an information about template system for taxonomies in official WordPress documentation https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/
    It will show you how to create a template file for your custom taxonomy.

    Regards

    #74742

    sarahhellems
    Participant

    Thanks for your help! I know how to do that, and I’ve done it, but it doesn’t seem to want to hook into what you have set up for the shop template. I just copied over the file at woodmart > woocommerce > archive-product.php for my taxonomy but it stripped out the header, filters, and sidebar. How can I get those to use your theme elements?

    #74770

    Artem Temos
    Keymaster

    Could you please send us a link where we can see how it looks now?

    #74880

    sarahhellems
    Participant

    The shop page is at: https://proformulas85.staging.wpengine.com/shop

    The custom taxonomy page is at: https://proformulas85.staging.wpengine.com/system_category/condition-symptom-remedies/

    I just added the sidebar manually on the taxonomy page but can’t seem to get the section with the page title to show, no matter what I do.

    #74892

    Hello,

    Enter the page editing mode and find the option “Disable Page title” disable it and the title will appear.

    Best Regards

    #74957

    sarahhellems
    Participant

    This isn’t an actual page, it’s a taxonomy archive, so I don’t have a page editing mode for it. Is there another way to enable to page title?

    #74959

    Artem Temos
    Keymaster

    In this situation, you will have to perform additional code customization for this particular taxonomy page. You can do this in the file inc/template-tags.php. Sorry, but we don’t have a quick solution for this and extra code customizations are out of themes support scope.

    #74961

    sarahhellems
    Participant

    Thanks. You should really think about having a theme that has a page title on a custom taxonomy. Seems like a very normal thing to need a theme to do.

    #74966

    Artem Temos
    Keymaster

    Thank you for the suggestion. We will consider adding some functionality there.

    Regards

Viewing 10 posts - 1 through 10 (of 10 total)