• sandra01234

    (@sandra01234)


    I exported a theme which contains templates that can be assigned to posts and pages.

    I imported the theme to another site, and I could see all the templates I had created. However when i go to posts or pages, i cannot change the template to the custom ones.

    The workaround is to go to each custom template and resave each one at a time. Then it works.

    Is there a way to fix this?

    Thanks

    Sandra

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hmm, that’s a bit difficult to troubleshoot from the distance.
    You probably know that WordPress is looking for specific templates to assign to posts and page by default.

    • A template called single.html would be used by posts
    • A template called page.html would be user by pages

    Did you create those, and they weren’t assigned as expected from the Add new template choices?

    https://cldup.com/usis7QiqTB.png

    Or did you create a Custom template?

    https://cldup.com/6gsejY-zKk.png

    Thread Starter sandra01234

    (@sandra01234)

    Hi! thanks for following up.

    I created a custom template. When i create the custom template, it automatically appears as an alternate template when creating post or page. But when i export the theme and install it again, it’s not recognised. I have to resave it, and then it does.

    • This reply was modified 4 months, 1 week ago by sandra01234.

    When you Install the theme on your site again, it’s like a new theme install, that doesn’t know about your previous association. If you create specific single post and single page templates, those will be automatically assigned.

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