I’m confused about one of the core principles of page/post templates in Bricks.
I created a basic template for all WordPress posts and pages. Its only job is to set the margins for Wordpress content. It has a WordPress content element in it.
I set this to be used on all Pages and Posts.
Okay, so far all is fine.
The problem comes when I want to create a page using bricks builder.
When I create a new page in Wordpress and then “Edit In Bricks”, it uses the default page template I created (of course) so I can’t add anything using Bricks because the only element in there is the WordPress content element.
The only way I can get around this is to create a page, then create a template for that page, then assign the template to that particular page in the Template settings under “individual” but that seems absurd.
Surely I don’t have to manually go into the template settings and assign every new Bricks page to that Template before I edit it in Bricks Builder do I?
I am clearly missing something very basic but I can’t find the answer in the tutorials.
How do I create a template that gets used on every post or page except the ones I want to create/edit in Bricks?
You can use Theme Styles to set basic margins for all pages or make a custom class, like .default-section or .default-contanier and set those up and add them to every tempate or page. Then you can add another custom class like .section_mysection or .container_mycontainer with other settings specific for one page or many pages, it’s just a matter of adding the class to a section or page or whatever element you choose. You can add those classes in addition to the default classes. Then you could even add more classes like .section_fu and .container_fu, and add those with the other 2, etc.
I ‘ve been in the same « problem »: I think that you have to choose between edit immediately with bricks or make a template (the result is the same) and use some classes of your own to organize the margins as said macksix. You can’t edit inside a template, unless you want to modify the template.
I tried that to edit the content of some articles but it didn’t worked
I managed to create a page template that allows me to creat pages in either Wordpress/Gutenberg or Bricks.
It’s super simple. This is what I did and I don’t know if it’s the best practice, but it seems to work well.
In my Pages template (conditions: use on all Pages) I put a section with a container that has a Section, with a container that has a WordpressPost Content block in it.
Now if I have a page with content created in Gutenberg, the content shows up on the page, and if I choose “edit in bricks” I can add any bricks elements to it.
If there is no Gutenberg post content on the page, it doesn’t matter. Nothing shows up.