admin管理员组

文章数量:1289832

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

How can I identify which template and template-parts in a block-based theme (These are the very new full-site-editing themes that use all blocks) are being loaded on the front-end when an user is viewing a page?

For example: I'm looking at the Q FSE theme, and I don't know what template is being used to return the search results when I'm viewing it from the front-end.

For 'classic' php-based themes, there are several ways of identifying the templates. For example, you could call get_included_files as done in plugins like show-current-template or use other plugins like what-the-file and query-monitor.

(An answer to this question would be applicable to all block-based themes; not exclusively to a theme).

本文标签: How to identify what templates are being loaded in a blockbased theme