Code Monkey home page Code Monkey logo

Comments (6)

github-actions avatar github-actions commented on July 29, 2024

Support References

This comment is automatically generated. Please do not edit it.

  • 8087247-zen

from themes.

liviopv avatar liviopv commented on July 29, 2024

📌 REPRODUCTION RESULTS

  • Tested on Simple – Could Not Replicate
  • Tested on Atomic – Could Not Replicate

📌 FINDINGS/SCREENSHOTS/VIDEO
Simple site
https://github.com/Automattic/themes/assets/14153300/04d8f588-ffae-4b78-87cd-c96b996466d0

Same as the above on Atomic

📌 ACTIONS

  • Closed as by design

📌 Message to Author
@ClassicRKR27 that's the expected behavior, unless I'm missing some context from the interaction.

As you can see, once I add a custom template, the "Swap Template" option shows up for both Post and Pages.

Looking at the user's site, they don't have any custom template that can be applied to any post/page, so it's correct for them to only see "Edit Template" and "Create New Template".

They only have a custom template for a specific page, "Instruction"

from themes.

ClassicRKR27 avatar ClassicRKR27 commented on July 29, 2024

@liviopv are we sure this is by design? Because the Swap Template option appears in other themes with no custom templates: SPahWM.png

The above is with the Cakely theme, and for the Peirao theme it's still not possible to swap templates even once a custom template has been created.

from themes.

liviopv avatar liviopv commented on July 29, 2024

@ClassicRKR27 Cakely has two custom Page Templates bundled in the theme, unlike Peirao:

CleanShot 2024-04-30 at 16 23 20@2x

from themes.

ClassicRKR27 avatar ClassicRKR27 commented on July 29, 2024

@liviopv in that case, why is the option to swap templates not appearing for this user when they do have a custom template? BfDZZM.png

If this is expected behavior, then it's very confusing - it's not clear why some themes come with custom templates and some don't, there doesn't seem to be any indication of why they're not able to switch templates when there isn't a custom template created.

from themes.

liviopv avatar liviopv commented on July 29, 2024

@ClassicRKR27 That template is for a specific page, Instruction, as mentioned at the end of my first message.

If this is expected behavior, then it's very confusing - it's not clear why some themes come with custom templates and some don't, there doesn't seem to be any indication of why they're not able to switch templates when there isn't a custom template created.

You're welcome to share that feedback on https://github.com/WordPress/gutenberg/issues just make sure to avoid sharing any a8c-related information.

That said, the behavior makes sense to me, as "Swap Template" only shows up when there's a template to swap to:

  • Custom or theme template that can be applied to pages or posts exists > "Swap Template" and "Create New Template" show up
  • No available template > only "Create New Template" shows up.

In cases like Peirao where there's no template to "Swap" to, where would the "Swap Template" link to?

from themes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.