You are viewing an older version of the Shortcodes documentation (3.x).
View the latest version (4.x) →
Get Started
Configuration
Create a shortcodes.php file under your /config directory with the following options available to you. You can also use multi-environment options to change these per environment.
<?php
return [
'*' => [
'map' => [
'video' => '_shortcodes/video.twig',
// ...
],
],
];Now, any [video] shortcodes will now load your custom handler template.
Last updated: May 2, 2026, 3:23:54 PM