After moving a site to CP I tried @Ciprian 's FX Builder.
I found something in the page builder that is lacking - but would make it super friendly to use.
It’s fine for new posts, but you can’t edit existing posts. Which is what I think 90% of people would want to do with the plugin. SO when I switch to FX Builder tab I get a blank screen if I have existing content.
What most page builders do, is import all the content over to one builder container (usually the classic editor type widget), and then you can edit the page accordingly. I think this would be a good addition to the FX Builder plugin. Since I think most people will be importing existing sites over to CP.
Yes, I am aware of this, but I could not find a reliable way of migrating the content over.
The idea is that if you have an old page (using the classic editor) and you install FX Builder, you will now have to copy the old content into FX Builder and split it into columns, or sections.
Should I do this automatically, by creating a one-column layout and inserting the content there, same as the (Gutenberg) block editor creates a default classic block?
Or should I allow the user to create, copy and paste content into FX Builder, practically rebuilding the page?
Going with #1, would require creating some hooks to create sections programmatically, and this might also help in the future with creating preset layouts, for example “insert a 3-column row” quick button.
So, in conclusion, your idea is good, but it requires a bit of work. I’ll add it to my TODO list.
Hello @Ciprian
Option 1 is what most page builders do - just dump it all in one “classic” type column.
Option 2 would be too difficult I think, and who knows what code or shortcodes people add to their sites - could end up a real mess trying to make that work.
Option 1 is the easiest, indeed, but after dumping everything in a 1-column section, the user will still need to reorganize the content and place it manually into various columns and rows.
Option 2 would need to be explained via contextual help and tutorials.
Back to option 1, I will make this a high priority, as it needs a few hooks. For example, something like:
function fbx_create row( $type, $content ) {}
And then I could call it with the actual page content:
global $post;
fbx_create_row( '1-column', $post->content );
The function above could then be called by other plugins or developers to dynamically create preset layouts.
Well, option 1 would allow to open existing content in FX then yes, with minimal copy paste one can edit and organize.
It is the most straight forward. After all if I go in to edit, and it gets converted to a single column layout then I can decide to beautify it a little by sectioning my existing post and arranging content into columns.
Hi Ciprian,
The premium versions of page-builders allow people to add sitewide headers and footers to their website. Makes life a heck of a lot easier for designers.
( Not the <header> and <footer> code, I mean as page-builder templates )
This would be a real game-changer. If you do consider it, I’d be pleased to support this as a premium feature for building new sites.
In one of my themes, I have a new CPT called Template Part. This is used for header, footer, various sidebars, and various other sections of the website. I used the Pattern (wp_block CPT in WordPress, until they broke it), and then I coded my Template Parts.
I could do the same here, and have these Template Parts usable for more than the header and footer.
I would then need to code an inserter in FX Builder to insert a template part.
Hi Ciprian,
That CPT even adds more flexibility and options.
I’m thinking though of a dedicated header or footer template (to use your term). So when that template is activated it replaces the theme header or footer.
But the dedicated header/footer would still be a CPT (behind the scenes). I have never used a page builder myself before, so I don’t know exactly how they work, but I’m thinking they hook into the wp_head() and the wp_footer() functions.
But wp_head() only contains the code in the <head> element.
Not sure how I would approach this. I’ll think about it, though. Maybe I’ll research some other page builders and see how they are doing it.
I think the head and foot sections are in the page body.
But in a page builder they are generally not directly editable when doing page content.
For example In elementor you can create several Head or Foot Sections if you wanted and select which page they display on. So on a membership site the non-member pages might have a join button rather than the full menu that signed in members get