[Resolved] Custom Post Template

This topic contains 3 replies, has 2 voices, and was last updated by  Andrew Misplon 1 year, 2 months ago.

  • Author
    Posts
  • #7483

    Custom Customer
    Participant

    Hello !

    Please give me an advice, whether there is a way, to add custom template for Posts?

    I found following directory:
    ultra/page-templates

    but when I’m adding my custom template to that directory, it doesn’t appear in admin panel, so that I cannot choose that.

    Thank you!

    #7484

    Andrew Misplon
    Keymaster

    Hi 🙂

    Thanks for posting.

    Please, remember not to edit any files in the theme directory, the entire directory is overwritten during theme updates so it’s best to make changes, if required, in a child theme.

    The easiest solution for adding page templates to posts is to use the following plugin: https://wordpress.org/plugins/custom-post-type-page-template/. Once installed and activated, go to Settings > Custom Post Type Page Template and activate the posts option. Then, edit any post and at the top in the right column you’ll be able to choose any of the theme’s page templates.

    Hope that helps.

    #7485

    Custom Customer
    Participant

    Andrew, thank you.
    It works!

    #7486

    Andrew Misplon
    Keymaster

    Awesome : ) Glad to hear that did the trick.

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

You must be logged in to reply to this topic.

Scroll to top