# Dojo Jutsu: WordPress Plugin & Shortcode Integration Guide
Target Platform: WordPress 6.0+
Compatible Page Builders: Gutenberg, Elementor, Divi, Beaver Builder, Oxygen, Bricks
# 1. Overview
For WordPress dojo sites, embedding Dojo Jutsu can be done via the standard shortcode format or by adding the script to functions.php.
# 2. Option A: No-Plugin Gutenberg / Custom HTML Block
- In WordPress page editor, add a Custom HTML block.
- Paste the following snippet:
HTML
<script src="https://cdn.dojojutsu.com/v1/embed.js" async></script>
<dojo-jutsu-schedule
dojo-key="dj_pub_YOUR_DOJO_KEY"
theme="forest_green">
</dojo-jutsu-schedule># 3. Option B: WordPress Shortcodes (functions.php)
Add the following helper to your child theme's functions.php:
PHP
<?php
// Register Dojo Jutsu Embed Assets & Shortcodes
function dojo_jutsu_register_embeds() {
wp_register_script('dojo-jutsu-embed', 'https://cdn.dojojutsu.com/v1/embed.js', array(), '1.0.0', true);
}
add_action('wp_enqueue_scripts', 'dojo_jutsu_register_embeds');
// [dojo_schedule key="dj_pub_..." theme="forest_green"]
function dojo_jutsu_schedule_shortcode($atts) {
$a = shortcode_atts(array(
'key' => '',
'theme' => 'forest_green',
), $atts);
if (empty($a['key'])) {
return '<p><em>Dojo Jutsu Error: Missing API key.</em></p>';
}
wp_enqueue_script('dojo-jutsu-embed');
return sprintf(
'<dojo-jutsu-schedule dojo-key="%s" theme="%s"></dojo-jutsu-schedule>',
esc_attr($a['key']),
esc_attr($a['theme'])
);
}
add_shortcode('dojo_schedule', 'dojo_jutsu_schedule_shortcode');
// [dojo_waiver key="dj_pub_..." theme="forest_green"]
function dojo_jutsu_waiver_shortcode($atts) {
$a = shortcode_atts(array(
'key' => '',
'theme' => 'forest_green',
), $atts);
wp_enqueue_script('dojo-jutsu-embed');
return sprintf(
'<dojo-jutsu-waiver dojo-key="%s" theme="%s"></dojo-jutsu-waiver>',
esc_attr($a['key']),
esc_attr($a['theme'])
);
}
add_shortcode('dojo_waiver', 'dojo_jutsu_waiver_shortcode');Then in any post, page, or Elementor shortcode widget:
[dojo_schedule key="dj_pub_wakatake_live"][dojo_waiver key="dj_pub_wakatake_live"]