Port the WordPress block editor to ClassicPress shortcodes

I have been using WordPress for a long time now and I still am. I became lazy and I like the column blocks and the cover blocks and the group blocks.

I want them in ClassicPress.

So I want to create a shortcode plugin, which will allow me to create these blocks (and more) using shortcodes. Here is an example:

[element type=”cover” height=”100vh” width=”full” background=”image.jpg” text=”#ffffff”]
Content here
More content here
Even more content here
[/element]

This will be a very simple and small plugin. One shortcode with lots of attributes and a CSS stylesheet.

UPDATE #1: An alpha release has been published - FX Shortcodes – getButterfly Studio – An ImagePress Demo

UPDATE #2: This is proving harder than I though, due to multiple nesting issues and rogue <p></p> elements. As I don’t want to use Regex and preg_replace() and loops inside loops, I’m back to the drawing board.

UPDATE #3: The plugin has been finalized and it’s now in the testing phase :tada: :maracas: :partying_face:

UPDATE #4: The plugin has been submitted to the ClassicPress Directory!

4 Likes

This is not “blocks” - it is shortcodes. let’s call it its name because shortcodes offer much more flexibility and features than blocks. Kudos! I will test it and report if I find any issues. Thanks for developing it!

1 Like

This is basically the premise of my Melody Build plugin. Only it uses shortcode that get auto inserted when you click on a Add Element button in editor. GitHub - tradesouthwest/melody-build: Melody Build is a content page builder focused on promoting HTML for ClassicPress. · GitHub - actual working repo GitHub - tradesouthwest/mixmat: Mixmat Page Mixer gives editors an easy way to sectionalize the posts and pages without knowing CSS or HTML. · GitHub

1 Like

In general, I think the concept is a win/win if we can get it to work smooth and have enough contributors to work on individual “blocks” (“Units”?). And make the pull out vanilla.

1 Like

Yes, I thought about an auto-inserter plugin.

I’ll try your Melody Build plugin tomorrow.

@tradesouthwest I tried it and I remember seeing a similar one, in terms of columns and grids.

Yes, it looks good, I like it, but the Melody Builder was last update 3 years ago and Mixmat 4+ years ago.

Guess this type of shortcode based plugins inspired the WP team to develop the block editor :grin:

1 Like

Nice plugin!
It would be great if you also add the relevant shortcode tag for each of the examples. Currently it’s somewhat difficult to duplicate some of them. (for me at least)

1 Like

@Guido07111975 I already have an extensive documentation page in the back-end of ClassicPress. As soon as I release the plugin (today, hopefully), I will add the documentation to the sample page.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.