-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend Gutenberg server rendering of templates and template parts for problem determination #41
Comments
Formalise solution for template partsIn Fizzie's
Consider ways to easily turn the debug information on and offI didn't bother to check if the user was logged in, nor if they had theme editing capability Find a method to produce information for the template file
|
…emplate part to home.html. Add some styling
Since I started creating the SB-debug-block plugin, where I encountered a couple of problems, and since I've not done much work on the internationalization (i18n) of templates and template parts I haven't really put much thought into the debuggability of templates and template parts. So I may as well close this issue. The last commit was delivered in v0.1.1. |
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">
tagswhich contained the name of the template part.
I then wrote some naff CSS to enable the information to be viewed on the front end.
Requirements
The text was updated successfully, but these errors were encountered: