Add custom template

Posted in: Newspaper
Post count: 12

Hi,

I want to know how to add a custom-template.php and the use into specific post.

Thanks!

Post count: 22421

Hello,

If you want to add a custom template to use on your posts you can use the theme api system: https://forum.tagdiv.com/api-single-template-introduction/ but you will need coding skills to do it.

Thank you!

Post count: 12

Bogdan,

Thanks for your help, i work with a child theme of newspaper so i have the folder newspaper-child, and the td_config.php are inside of newspaper/includes/td_config.php so:
– i need to copy this folder “includes” into my child theme folder?
– i can add the code for custom-template.php registration over the newspaper folder? in that case what root i need to use for “file” parameter ‘file’ => td_global::$get_template_directory . ‘/single_template_1.php’ ?

thanks again!

Post count: 22421

The new template can have it;s own name as it needs to be registered as a new template unless you want to edit an existing template. As for the child theme, you will have to keep the folder structure intact as shown here: https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.