Site Hooks

Site Hooks allow you to insert custom content or code at specific points in your website without editing theme files directly. The Top Hook is typically used to add content at the very top of your website, above all other elements.

Top Hook:

  • Enable Top Hook: Choose whether to show or hide the top hook.

  • Top Hook: Add custom code that executes right after the opening <body> tag.

Content Before Hook:

  • Enable Content Before Hook: Choose whether to show or hide the content before hook.

  • Content Before Hook: Add custom code that executes before the opening <#primary> tag.

Content After Hook:

  • Enable Content After Hook: Choose whether to show or hide the content after hook.

  • Content After Hook: Add custom code that executes after the closing </#main> tag.

Bottom Hook:

  • Enable Bottom Hook: Choose whether to show or hide the bottom hook.

  • Bottom Hook: Add custom code that executes after the closing </body> tag.

Tracking Code:

  • Enable Tracking Code: Choose to show or hide the site tracking code.

  • Google Analytics Tracking Code: Enter your Google Analytics tracking ID (e.g., UA-XXXXX-X). You can also offer visitors the option to opt out of tracking by using the shortcode dt_sc_privacy_google_tracking on your site.

Last updated