I’m a theme developer and usually when I need extra rows of editable information I’ll use widgets or custom metaboxes but have decided to give Page Builders a try. I have my theme set up but I have a mixture of full width sections with cover images and sections which need to have a static width of 1400 or 1200 something of the sort.
Is there a hook to make selecting the normal website width easier for users? I’d prefer when I hand this off that they’re not physically typing the width in pixels each time they create a new section as they’re likely to mess something up and I’d rather keep the site as consistent as possible. How do other developers handle this? Not give them access to the builder?
Any tips or suggestions would be greatly appreciated!
Hi
Thanks for reaching out.
I might need to look at your theme to help. Page Builder operates from the_content so it just works within the container you output the_content into. Full width and full width stretched containers use JS to achieve their width.
If you’d like to filter Page Builder we have the following options:
HTML: https://siteorigin.com/docs/page-builder/hooks/html/
CSS: https://siteorigin.com/docs/page-builder/hooks/css/
Custom options in the row styles sidebar: https://siteorigin.com/docs/page-builder/hooks/custom-row-settings/
For interest sake, you can see in our Vantage theme using some of the Page Builder theme setting default options here: https://github.com/siteorigin/vantage/blob/develop/functions.php#L58-L64.