When Trellis is the active theme, you can find these settings by logging into your WordPress site and navigating to Appearance → Mediavine Trellis → Hooks

Add custom HTML code to the <head> tag

Use this hook to add additional meta tags or scripts to the <head> section of your site. Anything added to this field will be served site-wide.

A good use case for this setting would be to add your Google Site verification HTML meta tag, or a Pinterest domain verification HTML tag.

❗ A bad use case for this setting would be CTAs, Affiliate messaging, and pretty much anything that doesn't belong inside a script or meta tag.

Add custom HTML code before the post content

Anything added here will be displayed just before the content on posts only. This content will not display on pages or article feeds.

A good use case for this hook would be Affiliate Disclaimers, CTAs, or anything else you might want to see at the top of all your posts. This field supports HTML markup and shortcode.

Add custom HTML code after the post content

Anything added here will be displayed just after the content on posts only. This content will not display on pages or article feeds.

A good use case for this hook would be CTAs or anything else you might want to see at the bottom of all your posts.

This field supports HTML markup and shortcode.

Add custom HTML code to the end of the <body> tag

Use this hook for additional scripts or third-party stylesheets that might be required by external services such as newsletters or email opt-in forms.

Anything added to this field will be served site-wide, just before the closing </body> tag of all posts and pages.

Did this answer your question?