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#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
UPDATE #4: The plugin has been submitted to the ClassicPress Directory!
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!
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.
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)
@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.