Generating Custom Shortcodes

Generating Custom Shortcodes

⌘K
  1. Home
  2. Docs
  3. snippetbox-header-footer-...
  4. Dynamic Implementations
  5. Generating Custom Shortcodes

Sometimes you need to inject code directly into the middle of a page, rather than in the global header or footer.

When configuring a new snippet, change the “Placement Location” to Shortcode Only. SnippetBox will automatically generate a dynamic shortcode on the right-hand side of your screen (for example: [wsm_snippet id="5"]). You can copy and paste this shortcode directly into any Gutenberg block, page builder (like Elementor or Divi), or widget area to execute the code exactly where you place it.

Was this article helpful to you? No Yes

How can we help?