custom page template

Posted in: Newsmag
Post count: 1

What is the correct method or any docs describing how to create a custom page template in a child theme in newsmag.

I have a page where i need to apply some custom code (performs a custom search and some other logic) So far i have copied the page.php and modified this. Is that correct method. Similarly i have a custom post type which i want to apply a template, i have again started by copying the page.php and renaming to single-(posttype).php, is this correct method for this template?

thanks

Post count: 44

Custom page template – Copy page.php to child theme. Rename page.php to page-{page_slug}.php (Documentation).
Custom CPT Template – Copy single.php to child theme. Rename to single-{post_type}.php (Documentation)

Post count: 7909

Hi,

Please also check documentation as we have changed the child theme system and more files can be overwrtten by child theme files – https://forum.tagdiv.com/the-child-theme-support-tutorial/
These are the theme post templates if you want to create something similar – http://screencast.com/t/Uf2OilKVBv1

Thanks!

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