Home › Forums › Support › create custom template This topic has 3 replies, 3 voices, and was last updated 3 years, 10 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 18, 2020 at 9:38 pm #1333517 Hilton Hello, I created a template for single.php with the name single-recipes.php (on a child theme). In line 21 I changed it to get_template_part (‘content’, ‘single-recipes’), and created the content-single-recipes.php template. How can I do with the comments.php file so that I can create comments-recipes.php and make references to it in the single-recipes.php? As it is a recipe template, I need to make some changes. June 19, 2020 at 4:17 am #1333870 DavidStaff Customer Support Hi there, you can edit the comments_template() callback in your single-recipes template to include your new comments-recipes.php See the Codex example here: https://developer.wordpress.org/reference/functions/comments_template/#user-contributed-notes June 19, 2020 at 10:22 am #1334408 Hilton Hi David, I tried to edit but I must be doing something wrong because it is not working. My comments-recipes.php file is inside the child theme folder, so I edited it by adding the following, but it didn’t work … <? Php comments_template ('/comments-recipe.php'); ?> June 19, 2020 at 3:00 pm #1334756 TomLead Developer Lead Developer Hi there, Does comments-recipe.php exist in your child theme? The code should look like this: <?php comments_template('comments-recipe.php'); ?> Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In