GeneratePress: Templates With WordPress Blocks – WordPress

WordPress is all-in on the block editor. There’s no going back.

While it may not have all the bells and whistles of third-party editors like Elementor or WP Bakery, it has a few things going for it. Block data is encoded right into the post content, making block editor pages really fast. Data doesn’t get stored in separate post meta fields, which means no extra database queries to build out the page content.

One other huge benefit is the same one that WordPress has leveraged from the beginning: its open-source nature. WordPress knows that the biggest advantage it has is the army of developers that can and will build on top of the WordPress system, fleshing out new features and expanding its reach ever further.

The Block Builder as a Building Block

Right now, GeneratePress seems to be leading the charge. The Elements system in the GeneratePress Pro plugin has drastically expanded the realm of possibility for the block editor. What is by default a one-off page building tool is expanded by Elements into an entire templating system. Single and archive templates, headers and footers, sidebars and navigation menus; all of these things previously landed in the domain of PHP template files located within themes. The promise of full site editing doesn’t seem to have been realized since we wrote about it last year, leaving GeneratePress Elements to lead the charge in meaningfully-expanding the block editor beyond post content.

Dynamic Content

Essentially, Elements allows you to use the block editor to build out templates for various parts of your website, using a dynamic data system to fill in the content based on the data attached to a specific post. Dynamic Content allows you to insert data from a post (title, content, metadata, etc.) into a block, allowing you to use the same group of blocks to display different content depending on the post that the user is currently viewing. Build it once, use it many times.

Better Blocks

The tool also goes hand-in-hand with the GenerateBlocks plugin, which provides enhanced core structural blocks that put their default WordPress equivalents to shame. Where default WordPress blocks like columns and headings can seem unintuitive to use and limited in terms of customization, GenerateBlocks provides easy-to-use, highly-customizable replacements for these features. The three or four block setting options available to most default WordPress blocks seem positively primitive compared to the tens (Hundreds? We lost count.) of block options available to GenerateBlocks. Many of the settings are shared between blocks, keeping things consistent and making it easy to familiarize yourself with how the system works.

Better Templates, Built Easier

The Elements system isn’t just a replacement for the age-old PHP theme templates that WordPress developers are all too familiar with; it expands what’s possible with customizable Display Rules. Want to have a different post template for logged-in and logged-out users? No need to fold two separate templates into a single PHP file using if/else statements. You can create two separate templates within Elements, set the display rules to differentiate between logged-in status, and then build everything out using WordPress blocks. Elements pushes the limit of tailoring your theme exactly to different groups of users, and does it while making the whole process incredibly accessible to the average WordPress user (i.e. not just us developers).

Blocks in the Loop

The system isn’t just limited to singular content types either. It’s not just possible but borderline easy to tap into the WordPress loop using blocks. The Query Loop block included in GenerateBlocks acts as a container for individual blocks that make up a single item in a feed. Inside the Elements system, the Query Loop block can be used to built out archive pages and other types of post feeds.

Overall, the block editor hasn’t seen much change since its debut a few years ago. Many would argue that compared to the third-party visual builder competitors (the competition that inspired its very creation) which are constantly adding new features, the WordPress editor hasn’t lived up to its promise of making the default WordPress editing experience the superior option.

However, that line of thinking ignores the very thing that made WordPress the dominant CMS all across the internet. WordPress isn’t about one team doing it all; rather, its job is to lay the groundwork for any other developer to build on.

With the way that GeneratePress Elements has taken the block editing experience and run with it, the future certainly looks bright for building with blocks.

Work With Us

We've been building websites for over twenty years, and have learned a thing or two about how to make web projects go smoothly.

What Our Clients Say

Watermelon Web Works, LLC place picture
4.7
Based on 19 reviews
powered by Google
OMS Anita profile picture
OMS Anita
22:20 29 Nov 24
Watermelon Web Works has been incredible to work with. They are patient, understanding, and quick to answer any questions (or emergencies) you might have. After switching over to them to help re-vamp our online retail store, we hired them to build our wholesale website as well. I can't recommend them enough - Thank you team!
Garrett Lister profile picture
Garrett Lister
19:55 10 Jul 24
Jared and the watermelon team were great - they quickly interpreted our website needs and designed a wonderful site. The project management site worked great to keep track of project.
N B profile picture
N B
21:23 14 Nov 23
My previous web developer who I was very happy with retired and I was pretty sad about it because it seems now days it is hard to hire a web developer close by with a good set of skills who is interested in helping small business at reasonable prices. Then I found Watermelon and I have been very happy. They are responsive, are able to solve problems, and work at reasonable prices.
Dark Star Magick profile picture
Dark Star Magick
18:05 03 May 23
We hired Watermelon to help us with our website. They were very thorough and took the time to explain in layman's terms what they were doing and how we could improve SEO and site functionality. We will definitely be back for future website needs!
Astoria Column profile picture
Astoria Column
18:42 24 Apr 23
Great work and amazing service! We're a non-profit, and our priorities are always focused on maintaining the Astoria Column. We had a website built by someone else a few years ago, but without regular updating and maintenance, sections of our site were no longer functional. Joanna and the rest of the team came in and had everything working within a week and it's been smooth sailing since then!
Ben Harris profile picture
Ben Harris
19:25 26 Aug 19
Watermelon has been a fantastic web development partner. Through every phase of our project they have always been 100% responsive to our requests and have always provided highly knowledgeable, creative, prompt, and personable team members to work with. As a financial institution we’re always concerned about the security and maintenance or our website and Watermelon has always provided the appropriate resources in order to meet and/or exceed our compliance and security requirements. We would surely refer them to any business associates looking for a qualified WordPress web designer in the future. – Denali Federal Credit Union
Mohr IP Law Attorneys profile picture
Mohr IP Law Attorneys
00:33 11 Apr 19
Watermelon Web Works did a great job creating a custom shopping cart page for our firm. Gavynn in particular was especially helpful and responsive. We appreciated the upfront costs and the technical competency of Watermelon Web Works and would not hesitate to work with the people there again.
Kim Markle profile picture
Kim Markle
23:36 08 Feb 19
Our company has been working with the Watermelon team for more than 10 years to help build and grow our website and customer portal. They are not only extremely talented and responsive, but are continuously looking for ways for us to enhance our current website. They are consistent, provide excellent customer service and really know what they are doing. Highly recommend!
Rick Brodner profile picture
Rick Brodner
23:23 12 May 17
I cannot say enough good things about Watermelon. They are terrific communicators, highly competent coders, and really, really nice people. They were instrumental in helping us to assemble a very usable, easily maintainable website for our organization. They' have demonstrated great flexibility in accommodating our evolving needs. They have been highly responsive to any technical issues, typically resolving them in less than 4 hours. Watermelon Web Works will make your organization better, and your CFO/Treasurer will be happy when they see the bill - what more can you ask for?
CLOSE