Home › Forums › WoodMart support forum › Page template for custom taxonomy
Page template for custom taxonomy
- This topic has 9 replies, 3 voices, and was last updated 6 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
August 28, 2018 at 12:23 am #74570
sarahhellemsParticipantHi, 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?
August 28, 2018 at 6:07 am #74578
Artem TemosKeymasterHi,
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
August 28, 2018 at 8:24 pm #74742
sarahhellemsParticipantThanks 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?
August 29, 2018 at 6:03 am #74770
Artem TemosKeymasterCould you please send us a link where we can see how it looks now?
August 29, 2018 at 10:30 pm #74880
sarahhellemsParticipantThe 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.
August 30, 2018 at 5:37 am #74892
Elise NoromitMemberHello,
Enter the page editing mode and find the option “Disable Page title” disable it and the title will appear.
Best Regards
August 30, 2018 at 4:52 pm #74957
sarahhellemsParticipantThis 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?
August 30, 2018 at 5:23 pm #74959
Artem TemosKeymasterIn 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.August 30, 2018 at 5:35 pm #74961
sarahhellemsParticipantThanks. 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.
August 30, 2018 at 7:09 pm #74966
Artem TemosKeymasterThank you for the suggestion. We will consider adding some functionality there.
Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register