You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image: Shorthand syntax should enable functionality and UI for the lightbox #54635
We should determine what needs to change in the codebase to allow for this shorthand syntax, determine what the behavior should be, decide whether we should indeed support the shorthand syntax or not and, if so, implement.
I see how we want to make this more convenient in making it shorter, thanks for thinking about this. At the same time, I also see how some people would expect that lightbox: true to be unfolded into lightbox: { allowEditing: true, enabled: true }.
Moreover, the lightbox feature only works for the image block, so theme authors would not have to write it more than once ever (either at the top-level or the block-level). It's not like they have to write it dozens of times for different blocks. Given all this, I don't think it's worth implementing at the moment.
Thanks for raising this! The team decided not to support a boolean shorthand for settings.lightbox. The lightbox only applies to the Image block, so the object form ({ "enabled": ..., "allowEditing": ... }) only needs to be written once, and lightbox: true would be ambiguous about which of the two flags it sets. The theme.json schema still accepts only the object form, so I'm closing this as won't-do. Feel free to reopen if a strong use case comes up.
Activity
oandregal commentedon Sep 27, 2023
I see how we want to make this more convenient in making it shorter, thanks for thinking about this. At the same time, I also see how some people would expect that
lightbox: trueto be unfolded intolightbox: { allowEditing: true, enabled: true }.Moreover, the lightbox feature only works for the image block, so theme authors would not have to write it more than once ever (either at the top-level or the block-level). It's not like they have to write it dozens of times for different blocks. Given all this, I don't think it's worth implementing at the moment.
youknowriad commentedon Oct 6, 2026
Thanks for raising this! The team decided not to support a boolean shorthand for
settings.lightbox. The lightbox only applies to the Image block, so the object form ({ "enabled": ..., "allowEditing": ... }) only needs to be written once, andlightbox: truewould be ambiguous about which of the two flags it sets. The theme.json schema still accepts only the object form, so I'm closing this as won't-do. Feel free to reopen if a strong use case comes up.