Better support for block themes and the Your homepage displays
option
#64620
Replies: 4 comments 5 replies
-
Pinging TT5 leads: @carolinan @juanfra |
Beta Was this translation helpful? Give feedback.
-
This is a thorny area that travels with a lot baggage and causes a lot of frictions to users. It'd be great to take a broad look at the current landscape—including homepage settings, their relationships with permalinks and theme hierarchy, the representation as templates or pages, and how we could aim to simplify the matrix of combinations they produce. We should also aim to simplify without making things simplistic! There are valid reasons for the existence of these combinations and how their dynamics affect the url structure of a website. It expands beyond the dynamics of template loading as well and we should consider how these templates are discovered and represented in the admin UI. For example, a "blog" can be perceived as a page (or dynamic page if you will, with subpages for archives, etc), yet WordPress doesn't show the blog templates when it lists pages. That made sense when they were uneditable and driven purely by theme code. However, block themes have opened the door for those dynamic pages to be editable, which means their discovery and presence should be taken into account as well. This also naturally extends to custom post types, taxonomies, and their template relationship... The proposal for |
Beta Was this translation helpful? Give feedback.
-
100%. I believe the way it currently works is outdated partially due to WordPress's blogging origins, but also because that option is so decoupled from the current theme.
I'd say there are short-term and long-term wins to achieve here. For instance, the 1st problem I outlined in the description is a bug more than a UX/DX improvement. While we can (and probably should!) change the way this configuration works and is presented to end users, the lack of being able to correctly support the current value in the block theme is something more pressing due to the broken behavior today. That said, I agree we need to consider some of the other points you mention too and implement a fix to that bug in a way that doesn't get in the way of what we want this to look like long-term.
Great point on the I'd say out of the templates you mention, |
Beta Was this translation helpful? Give feedback.
-
It needs some organisation but #63783 captures many of the issues relating to homepage setting/editing. |
Beta Was this translation helpful? Give feedback.
-
Almost a year ago, we were discussing how to handle the
home
andfront-page
templates in the TT4 theme (see WordPress/twentytwentyfour#706). This highlighted a problem where block themes are unable to correctly honor theYour homepage displays
WordPress option, because thefront-page
template is loaded regardless of the option value. At the same time, the theme has no influence on that option, which can lead to a poor user experience, since many themes are either focused on being for a blog or for a site where the blog is not the primary content.So I believe there are two underlying problems:
In other words, it goes both ways. Block themes need to be able to support the way in which the option is configured, but at the same time the option should better support the theme's preference.
Separately, it's worth noting that, per an HTTP Archive query I ran earlier in GoogleChromeLabs/wpp-research#150, almost 80% of WordPress home pages display a static page. So potentially showing the blog on the home page is just not a good default nowadays in the first place. But that's an even broader discussion, so maybe better to focus on the two problems above that directly affect themes. This information may just be useful context.
Curious to hear other people's thoughts on this. How can we improve the compatibility between WordPress (block) themes and the
Your homepage displays
option?Beta Was this translation helpful? Give feedback.
All reactions