Skip to content

How can I remove the unwanted div.wp-block-template-part wrapper from Template Part #54950

Answered by huubl
realthemes asked this question in Q&A
Discussion options

You must be logged in to vote

I think there is no proper way to remove the wrapper from template parts. But I came across this repository that uses workaround to allow template parts to render without a wrapper when a custom attribute "skipWrapper" is set. While I haven’t personally tested this, it might be of assistance to you.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@patrickreiner
Comment options

Answer selected by realthemes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants