This plugin allows you to add a spacer block via the Kirby Panel, when you need to add additional space in your front-end pages.
Download, extract and copy this repository to /site/plugins/spacer-block
.
Once you've installed the plugin, simply add - spacer
to your fieldsets
options in the relevant blueprints. For example...
fieldname:
type: blocks
fieldsets:
- text
- image
- gallery
- markdown
- spacer
You can also make the spacer block universally available by adding it to a default list of blocks via your /site/config/config.php
file...
<?php
return [
'blocks' => [
'fieldsets' => [
'text',
'image',
'gallery',
'markdown',
'spacer'
]
]
];
The spacer block is non-editable in the Panel. It adds a <div class="spacer"></div>
element in the front-end. You can then style the .spacer
class as required in your main CSS file.
This plugin is provided "as is" and with no guarantee. You use it at your own risk. Always test it before using it in a production environment. If you find any issues, please create a new issue.