-
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
Create an Output Input Debugging custom template to aid debugging #65
Comments
bobbingwide
added a commit
that referenced
this issue
Apr 18, 2021
bobbingwide
added a commit
that referenced
this issue
Apr 18, 2021
6 tasks
delivered in v0.5.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the UK Community Slack #gutenberg channel Dan Atrill reported a problem with unwanted paragraphs.
I thought I'd already resolved this problem as reported in #20.
wpautop()
processing fromtemplate-part.php
While investigating a problem with the site logo image size I noticed the unexpected paragraph problem reappear in my
page-footer
template part. There were empty paragraphs around generated shortcode content.For this particular problem I discovered a simple workaround. Change from using the
wp:shortcode
block to the custom HTML block.wp:html
I achieved this without having to look deeply into the code.
Instead I developed a custom template that displays the minimum output to debug the generated HTML.
This issue is to formally document the requirements for a custom template to help debug blocks in the front end.
Requirements
Proposed solution
Output Input Debugging
configured as below.[contents]
shortcode initially.Custom template definition
input-output.html is
contents-shortcode.html template part is
where
[contents]
is a shortcode from oik-block[guts]
is a shortcode from oik-blocks[bw_wpadmin]
is a shortcode from oikoik-css/css
block is from oik-css.All of which are needed on the site for which Fizzie is targetted.
The text was updated successfully, but these errors were encountered: