Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stewart: Default Page template contains Content block in Query Loop causing issues editing individual pages #8547

Open
jp-imagines opened this issue Dec 18, 2024 · 2 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report". [Feature Group] Appearance & Themes Features related to the appearance of sites. [Platform] Atomic [Platform] Simple [Pri] Normal [Status] Auto-allocated Triaged [Type] Bug Something isn't working

Comments

@jp-imagines
Copy link

jp-imagines commented Dec 18, 2024

Quick summary

The Stewart theme's default Page template places its Content block inside a Query Loop (with no inner Post Template block). As a result, when editing individual pages with the "Show template" setting active, you cannot edit the page's content because it is within a Query Loop.

Steps to reproduce

  1. Activate the Stewart theme on your site.
  2. From Pages (or Appearance > Editor > Pages), open a page in the editor.
  3. If editing from outside the Site Editor, ensure the "Show template" setting is enabled. (From the right settings sidebar, under the "Page" tab, click on the Pages template name and then click Show template. This setting may be enabled by default if your account language is anything other than English (US); see 'Show Template' defaulting to on for non-English(US) languages wp-calypso#97494.)
  4. Click on an element in the page's content area to select it.

A clear and concise description of what you expected to happen.

You should be able to select and edit content within the page as normal.

What actually happened

You cannot select or edit any of the page's content. Double-clicking shows a warning message:

You’ve tried to select a block that is part of a template, which may be used on other posts and pages. Would you like to edit the template?

Image

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

If the above answer is "Yes...", outline the workaround.

The easiest workaround is to disable the Show template setting when editing pages. (Based on the discussion in the GH issue above, I understand that this setting is intended to be enabled by default.)

An alternate workaround is to edit the Page template to remove the Query Loop block (which must have its contents unlocked first).

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

Initial report here: 9175795-zd-a8c

Copy link
Contributor

Support References

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

  • 9175795-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report". label Dec 18, 2024
@Robertght
Copy link

📌 REPRODUCTION RESULTS

  • Tested on Simple – Replicated
  • Tested on Atomic – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO

  • I see the same structure on the Pages template:

Image

📌 ACTIONS

  • Triaged
  • Increasing priority to Normal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report". [Feature Group] Appearance & Themes Features related to the appearance of sites. [Platform] Atomic [Platform] Simple [Pri] Normal [Status] Auto-allocated Triaged [Type] Bug Something isn't working
Projects
Development

No branches or pull requests

3 participants