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.
Here's a short form of the Site Hooks settings process
Step 1 : Login to your WordPress admin dashboard.
Step 2 : Go to Appearance > Customize.
Step 3 : Site Hooks in the Customizer panel.
Step 4 : Adjust the settings as desired.
Step 5: Click Publish to save your changes.

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_trackingon your site.
Last updated