Skip to content

Extend Gutenberg server rendering of templates and template parts for problem determination  #41

@bobbingwide

Description

@bobbingwide

While analysing the problems I came across with Gutenberg 9.4.0 I developed an extension to template-part.php which added debug information visible in the front end.
It sandwiched the output for each template part in some debug <div class="WP_DEBUG"> tags
which contained the name of the template part.

I then wrote some naff CSS to enable the information to be viewed on the front end.

image

Requirements

  • Formalise this solution for template parts
  • Find a method to automatically produce front end information regarding the template file that's been selected
  • Consider ways to easily turn the debug information on and off. e.g. Additional constant ( FSE_DEBUG), logged in admin user.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions