Home › Forums › Gutenberg › ACF Blocks and Condition if Exist › Reply To: ACF Blocks and Condition if Exist
Gutenberg are stored in the post content. I think this is not useful but did you tried to edit this in your template? If the Gutenberg block is already in a class of container like this you can add a full width and style it with CSS after.
<div class="container">
<div class="full-width guternberg-block">
My Block
</div>
</div>
style {
.container {
// this is a example
width: 1200px;
}
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}
}
you can read more here https://css-tricks.com/full-width-containers-limited-width-parents/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
π Weβre excited to announce we've released Composer support for installing ACF PRO.
— Advanced Custom Fields (@wp_acf) January 31, 2023
π #ComposerPHP fans rejoice!
β¨ Please see the release post for all the details and full instructions. https://t.co/ebEfp61nlR
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.