• Resolved ecabral

    (@ecabral)


    Hi,

    When I go to Appearance > Editor > Templates > Single Posts I see a Design menu on the right that shows me the Additional Templates listed here (they are beautiful, by the way!). I’ve now chosen a default template for all my blog posts.

    However, there are some posts for which I’d like to use a different template from the default one. I know I can change template in the blog post directly, but I’m not shown those sleek additional templates when I attempt to do that. I’m only shown two templates I created. Is this by design? Am I missing something?

    What I’m debating doing right now is whether to use the default Post type (and chosen default template) for prose/essays and use a custom post type (with a different template) for poems. This setup allows me to leverage two different sets of templates easily, but it’s a little more trouble to manage the content (in query loops, taxonomy, etc).

    So, I would like to understand exactly what my options are when I want to change the default Post template. Why can I not access those Additional Templates?

    Thanks a lot for the clarification!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi
    When you are editing a template, what you see in the Design panel are actually patterns that the theme developer has added an extra setting to, to make them show up in this panel.
    When you select a design, these patterns are inserted and replace the blocks in the template.

    When you are editing a post type (custom, page, or post etc) it already has a template selected and the Design panel is not available.
    What you can do and that I would recommend is creating a new template for the custom post type, or a custom template that you can assign to those posts that you want to use a different design for.
    Then copy all the blocks from the design you liked into this new template.

    If you think it would be easier for you, all the patterns are in the theme’s patterns folder.
    They are called template-single-photo-blog.php etc.
    If you copy the content of these files, only copy the blocks. Not the file header.
    The file header looks something like this:

    <?php
    /**
    * Title: Photo blog single post
    * Slug: twentytwentyfive/template-single-photo-blog
    * Template Types: posts, single
    * Viewport width: 1400
    * Inserter: no
    *
    * @package WordPress
    * @subpackage Twenty_Twenty_Five
    * @since Twenty Twenty-Five 1.0
    */

    ?>

    (If you happen to copy this into the block editor, you will get a classic block or a HTML block that you can delete.)

    Thread Starter ecabral

    (@ecabral)

    I see! Good to know!

    For the time being I’ll stick with having poems as a CPT, but I’ll definitely follow your tip (to copy the blocks under Patterns) whenever I need a different post template from the default one.

    Thanks, @poena !

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Additional templates in 2025’ is closed to new replies.