Could you add settings to the Template Part block (same as section, div, etc.: background, layout, sizing, margin & padding, etc.)
It would avoid to set a class and some CSS code.
You want to do that inside your actual template part.
I guess this is how things are working and makes the most sense.
I do agree, but it doesn’t work!
Actually, I tried hard to create a footer with a full width.
The only way I succed was adding a class to the Template Part and set to this class a width: 100vw. Then add the section nested inside → it works fine!
When I tried to add a full width section with width: 100vw, nested in the Template Part (with no class and no setting), it doesn’t work.
You used a template part inside a template.
You set your template to display:flex
and align-items:center
.
Combining a section block with a template part block won’t work that way.
By this reason you were forced to give the template part block a width of 100vw.
Giving the template a styling of display:block
would fix the issue and you could use your section inside the template part without the use of width:100vw
, instead you just can set it to 100%.
BlockquoteGiving the template a styling of
display:block
would fix the issue and you could use your section inside the template part without the use ofwidth:100vw
, instead you just can set it to 100%.
That is great! It works fine!
Thank you a lot!