-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add debug divs to templates with appropriate CSS #11
Comments
I've started to develop a new plugin SB Debug block ( https://github.com/bobbingwide/sb-debug-block ) to replace the hardcoded divs with a dynamic Server Side Rendered block. In order to get this to work for templates I've had to change Gutenberg. To get it to work for template-parts, I can override the template-part rendering logic and implement the solution there.
After
|
A similar solution can be used in template rendering.
with
Once that's been demonstrated to work I can then add the |
The |
Hey Herb This PR might be associated: |
Note: The |
In Fizzie I found it useful to create debug div at the top of each template part. It's styled with CSS so that the template name is either visible in the admin bar or appears when you hover over it, when not logged in.
I think this will be a useful thing to have in this theme as well.
Requirements
Proposed solution
The text was updated successfully, but these errors were encountered: