Thus, we are working on updates to our layout blocks to introduce common patterns. It’s also hard trying to teach busy individuals the idea of visual layouts, spacing, and alignment. We have found it’s hard teaching non-designers the concept of a grid layout in less than 30 minutes on an Uber Conference. I will admit, I was somewhat wrong in thinking all of our clients could create flexible layouts with just these two blocks. They allow us to create flexible, responsive, and most importantly, native WordPress layouts without any hacks or workarounds.īut it hasn’t been all rainbows and sunshine. We found that these two blocks alone have saved us time and energy. This way they can hide and show content on different devices and or rearrange content as needed. Lastly, admins can set the visibility of columns based on the viewport size. This way admins can push content away from other columns or from the container walls. Columns can also take an offset – per-viewport or universal. Similar to the alignment feature of the grid block, the column blocks can be adjusted per-viewport size or have a universal size set for all viewports. At that point, the rightmost column block wraps around to the next line, starting the process all over again. These columns are adjustable and line up horizontally until the combined size of the columns exceeds 12. Admins can set the alignment per-viewport size or they can choose to set a universal alignment.Īdditionally, the grid block allows admins to add a series of columns (pictured above). In a nutshell, the grid block creates a row that wraps a set of columns. It simply creates a set of responsive rows and columns that can contain any content. The grid block is a standalone block and does not need to be placed inside the container block. The grid block we created, for the most part, accomplishes this goal. They needed to be able to create complex layouts once our initial work with them was done. Ultimately this wasn’t a tool for our team, it was a tool for our clients. Once the container block worked as we had hoped we moved on to the next obstacle, creating a flexible grid system that didn’t require too much thinking from the user or client. While it’s a relatively simple block, it was important that we create a container block that allowed us to continue to design and develop in the way we were accustomed to. Allow admins to add an accessibility label for the group.Allow admins to set the container’s element type.Allow the container block to consume any blocks, whether native or custom.Allow admins to set a background color for the container.Increase or decrease the container’s padding.Automatically set a max-width for the content.This container block needed to do a few things: Instead of running away this time, we set out to solve the problem by creating a set of Gutenberg blocks.įirst, because we use a mix of full-width modules and modules that should be contained within a container, we needed to create a container block. When asked to build this specific client site on WordPress, this wasn’t and still isn’t a native feature of Gutenberg. We use a grid-based layout approach where we assign columns to span specific widths and the content contained within that column stretches to its parent’s bounding box. It’s a whole new way to layout pages within WordPress and allows clients to make content edits in a clean, WYSIWYG-like experience.īut there was one problem. Most studios would have spent more time understanding the framework in order to produce higher quality work.Īnyways, we had the opportunity to jump back into WordPress about two years ago. Thus, we did what all great digital studios do, found a different solution, and abandoned WordPress altogether. Moreover, our clients were oftentimes confused about how to edit their content once we handed off our projects. As designers, we found it hard to create complex layouts efficiently. Our first experiences with WordPress back in the day were not great. Over the last few years, we have been building a lot of websites on WordPress.
0 Comments
Leave a Reply. |