[Resolved] Custom Page Template

Home Forums Support [Resolved] Custom Page Template

Home Forums Support Custom Page Template

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #418561
    Amos

    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!

    #418704
    Leo
    Staff
    Customer Support
    #418713
    Amos

    i just want to create same template just remove the title on the new one….
    plugin for this is just to much…

    #418714
    Leo
    Staff
    Customer Support

    Like removing the page title by default and keep everything the same?

    #418717
    Amos

    no. i want to change the location of the title…

    #419061
    Tom
    Lead Developer
    Lead Developer

    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

    #419174
    Amos

    Thank you Tom!

    #419176
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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