Archived topic
Custom Page Template
7 replies · Started by Amos on November 8, 2017
Hello, i want to creat a new page template:
this is my child theme :
https://i.imgur.com/qQdSZPc.jpg
i duplicated the page.php and content-page.php to the child theme and change the name to "customtemplate".
This is the page-customtemplate.php
https://i.imgur.com/s0aLcHz.png
but it is not working for me... the new template not showing on the page settings...
what i am doing wrong? Thank You!
Hi there,
Would you consider using this plugin? https://generatepress.com/forums/topic/how-to-ad-custom-post-type-for-projects/#post-289476
i just want to create same template just remove the title on the new one....
plugin for this is just to much...
Like removing the page title by default and keep everything the same?
no. i want to change the location of the title...
In your template, replace this line:
<?php get_template_part( 'yourname', 'page' ); ?>
With the contents of the content-page.php file, highlighted here: https://github.com/tomusborne/generatepress/blob/1.4/content-page.php#L12-L34
Thank you Tom!
You're welcome :)