For the complete documentation index, see llms.txt. This page is also available as Markdown.

Auto-insert into Header / Footer

Introduction

By default, your shortcodes are only rendered on your site when placed, say [sv slug="business-development"], in the desired location.

In some instances, you may wish for a shortcode's content to be rendered automatically into your websites header or footer, for example for custom CSS or GA code.

How to enable

When creating or editing a shortcode, you will notice a section under the editor called "Automatically inserting into the the selected locations below". It's really as simple as checking one or both of these check boxes and saving the shortcode.

Limiting to specific pages

By default, a shortcode set to auto-insert into the header and/or footer is added to every page on your site. If you only want it to appear on certain pages, use the "Only insert on these pages:" box directly below the Header/Footer checkboxes.

Enter one page slug per line (or comma-separated), for example:

Leave the box blank to keep inserting on every page - this is the default behaviour and matches how auto-insertion worked before this option was added.

Last updated