[Resolved] custom template to make a page that just shows a picture

Home Forums Support [Resolved] custom template to make a page that just shows a picture

Home Forums Support custom template to make a page that just shows a picture

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #595439
    Jud

    I want to make a template so that I can upload screeenshots or presentation slide images and have them take up the whole screen.

    I have done some research, and have uploaded a “mytemplate.php” file to host/site/wp-content/themes/generatepress/, and confirmed that the temmplate got there, but, when I try to create a new page, I do not see that template in Page Attributes.

    Is there a different place I should put it?

    Is there some GP specific method?

    #595692
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    It should be added to a child theme instead of the parent theme, or you’ll lose the file when you update the theme: https://docs.generatepress.com/article/using-child-theme/

    Does your page template have the proper header set up?: https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use

    If it has a Template Name, it should show up in the dropdown when adding a page.

    #596156
    Jud

    Thank you! Works fine now that I followed instructions.

    #596276
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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