Creating a custom post or page template

Home Forums Jevelin Theme Creating a custom post or page template

Home Forums Jevelin Theme Creating a custom post or page template

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    RESOLVED Posts
  • sortedmedia
    Participant

    Hello,

    I have been trying to create both custom post AND page templates, I am using the proper header code (below), however any templates I create and upload to the theme folder are not showing up in my post or page template select drop down menu. (It is always just the default and redux templates available in the drop down.

    I am uploading to the jevelin-child folder. I even tried the parent jevelin theme folder but nothing ever shows up in the drop down.

    I attached an example template and screenshot of where I uploaded

    Post templates I start my code with (example) – PLEASE HELP! 🙂

    <?php
    /**
    * Single Post Test
    */

    Page I start with (example):

    <?php
    /**
    * Template Name: Donation Template
    */

    Attachments:
    You must be logged in to view attached files.

    Solution for this topic

    Hi @sortedmedia,

     

    I hope you are well today and thank you for your question.

     

    Does it work fine If you upload the template file in any default WordPress theme such as Twenty Twenty One theme?

     

    If not then please make sure that you are creating it correctly as described below.

     

    https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-custom-page-templates-for-global-use

     

    Best regards,
    Shufflehound team

    sortedmedia
    Participant

    Thank you this works! Please close.

    You are most welcome here 🙂

Viewing 4 posts - 1 through 4 (of 4 total)