Every shortcode is a PHP class and looks like this:
<?php
namespace Grav\Plugin\Shortcodes;
use Grav\Common\Utils;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
class ClearBothShortcode extends Shortcode
{
public function init()
{
$this->shortcode->getHandlers()->add('clearboth', function (ShortcodeInterface $sc) {
// Get shortcode content and parameters
$str = $sc->getContent();
$output = '<div style="clear: both;"></div>';
return $output;
});
}
}
with that, it should be possible to only call these classes.
Hey thanks for the comment!
The plugins don’t get maintained by me, they’re getting maintained by the Grav team. I’m not very good in PHP too.
I plan to create an issue on GitHub if I know more and probably identified the code causing the problem.