I am currently at a dilemma where I have a design where there is a sidebar to the left taking up 50% of the width of the screen(this sidebar area is pulling data automatically based on the post, so title, date, author, etc) and content to the right Taking up 50% of width of the screen.
In the right content section is where I have the_content();
This is grabbing all content and every block in the Gutenberg editor for this post.
The issue I am running into then is I want blocks that are added to the Gutenberg editor that are below the main content of the post (the heading and paragraph text) to extend full width instead of staying in the 50% width of the main content next to the sidebar.
Before Gutenberg I was able to accomplish this by having the_content();
(which was just a WYSIWYG editor) and I would then create flexible content blocks with ACF that I could select where I wanted them to reside based on where I put the code snippet for it in my theme. I am now building blocks using ACF blocks, which are Gutenberg-esque blocks built with ACF, that reside with everything else in the_content();
. Doing it this way I don't have the option to set custom blocks somewhere else in my theme files.
So now I am trying to find a solution on how to make this work. One of the ideas is if there is a way to add a section Gutenberg editor to a post. So When a user would create a post it would give them two Gutenberg editors where each could have blocks added to them, but I would have control where each content area would live in my theme files (example I would have the default the_content();
snippet for the default Gutenberg block and something like the_content_two();
for a secondary Gutenberg editor.
Is this something that is possible to do? And if it is not possible to do is there an alternative approach I could take to fix my dilemma of having a half and half sidebar and content to having a full width block underneath that content?