WordPress Theme Directory Launches Template Previews in Beta – WP Tavern
Meta contributors have enabled a new feature in the WordPress.org theme listings that allows visitors to preview grouped templates of themes. A grid displaying patterns now displays below a topic’s description and tags. These are automatically picked up from any theme that saves templates and works for both block and classic themes.
Clicking on a design will launch it in the theme preview. Visitors can see what it looks like in the context of the theme but cannot manipulate or customize it.
Automattic Sponsored Meta Team Contributor Steve Dufresne posted a short announcement previews of templates moving into beta, with a request for feedback from theme authors.
“Technically, model preview screenshots are generated by adding models into any model that handles rendering the ‘page’,” Dufresne said. “If you think the preview of the pattern isn’t displaying correctly, try adding the pattern to a page in your theme (as a user would). If the screenshot differs significantly from what you see , please open a meta ticket so we can take a look.
Elma Studio co-founder Ellen Bauer noted that the preview didn’t render third-party blocks and opened a ticket to track this issue. Templates that require WooCommerce or another plugin will not display correctly. Bauer said the models of their Aino theme seem as expected, as they use the AinoBlocks connect. Unless this can be resolved, relying on a plugin to deliver a theme’s templates can be a disadvantage for theme authors whose main distribution channel is WordPress.org.
Another quirk at the moment is that templates designed to be full-width or full-width may not display as expected due to being limited to the narrower default content size. This issue is ongoing and should be resolved soon.
Template previews help users get a better idea of what templates a theme offers and how they look inside the theme. Feedback has been positive so far, as it provides another way for theme authors to show off the possibilities of their themes. Themes without patterns are not necessarily disadvantaged by this new preview section, as the Pattern Directory has grown significantly since its launch to house over 800 block patterns.
This first beta version of pattern previews is the result of work on a ticket opened seven months ago asking for a demo for templates when browsing directory themes. The Meta Team requests that comments and bug reports be filed as a new ticket on Meta-trac.