Child theme: how to change template for custom post type
-
Hi,
I’ve installed a child-theme and created a custom post type named “product”. To change the design for this custom post type, I’ve copied the index.php of the customizr-theme to my child-theme and renamed it to single-product.php.
But what do I have to do now, to change the design of the template?
To ensure, that the single-product.php is choosed by the child-theme, I added some <h1>-text inside the “article”-tag (see code) to test it, but the text doesn’t appear, when I call a custom post in the browser.<article <?php czr_fn__f('__article_selectors') ?>> <?php do_action( '__loop' ); ?> </article>
How can I get inside the article-tag? Unfortunately I didn’t find any tutorial, WHERE to make the changes of the code. Could you help me, please?
Thank you very much for your reply in advance!
Andreas
- The topic ‘Child theme: how to change template for custom post type’ is closed to new replies.