woocommerce / theme-customisations

313 stars 112 forks source link

Adding a template for custom post type #31

Closed benpropulse closed 3 years ago

benpropulse commented 3 years ago

I understand that I can only override top level templates with this plugin, and not template partials and that's fine for my current project. However I was hoping to be able to add a template for my custom post type, like single-mycpt.php but that doesn't seem to work. Am I missing something? Are these not top level templates? Is there any workaround? Thanks

benpropulse commented 3 years ago

Nevermind, the workaround is as simple as filling templates/single.php with conditions on get_post_type() ...