Aegisify company logo
Aegisify SEO – Custom Injections2026-08-12T03:15:06+00:00
Aegisify SEO — Custom Injections

Add the Markup You Need Without Letting Custom HTML Override Core SEO Policy

Aegisify SEO 2.9.4 Custom Injections supports Google/Bing verification values, validated site-wide JSON-LD, advanced head markup, and footer markup while stripping several SEO directives that Aegisify intentionally owns through dedicated settings.

Custom injection is useful precisely because it is powerful—and that makes boundaries necessary.Aegisify keeps meta descriptions, canonical links, and negative robots directives under their dedicated SEO controls so an old pasted snippet is less likely to create duplicate or contradictory indexing signals.
InjectControlled

VerifyJSON-LDHeadFooter

Output Ownership

Know Which Values Are Independent and Which Require the Injection Switch

Search verification is intentionally separate from optional HTML injection; custom schema/head/footer use the injection master control.

Click a stage to expand

01VerifyGoogle / Bing
Google verification is stored as the meta content value. Bing accepts either the bare msvalidate.01 content value or a complete Bing verification meta tag and normalizes it to the token.
02ValidateJSON only
Site-wide extra schema must decode as valid JSON. Aegisify re-encodes the parsed structure before storage and rejects invalid JSON rather than printing a broken script block.
03Sanitizehead/footer
Custom markup has NUL/PHP-tag cleanup, a 20,000-character storage cap, permission-aware sanitization, and context-specific output allowlists.
04ProtectSEO-owned tags
Head injection removes duplicate meta-description tags. Head and footer inputs remove robots meta containing noindex/nofollow, and canonical links are stripped from rendered head injection.
05Renderpublic only
Injection output is skipped in wp-admin, feeds, and live-builder requests. Custom head/footer output runs only when the injection master setting is enabled.
06Testfront end
After saving, inspect rendered source, browser console/network behavior, schema validation, consent behavior, and page performance. Aegisify validates structure but cannot guarantee third-party code is correct or fast.
Verification Values

Keep Search-Engine Ownership Verification Simple and Independent

Google and Bing verification are configured in this area but are rendered independently of the optional custom-injection master switch.

Google

google-site-verification

The Google value is treated as the meta content value and emitted as a dedicated google-site-verification tag. This avoids requiring an administrator to paste an entire arbitrary head snippet for a basic ownership token.

Bing

msvalidate.01

Bing input accepts either the bare verification token or the complete Bing meta tag. Aegisify extracts the content value, removes unsupported characters, bounds the token length, and reports an invalid input when nothing usable remains.

Operational Detail

Bing Token Changes Reset IndexNow Health State

When the saved Bing verification value changes, Aegisify clears the previous IndexNow health result so the Search Console workflow does not continue displaying stale ownership-health evidence.

Separation

Verification Does Not Need Custom HTML Enabled

The front-end output prints configured Google/Bing verification before checking the custom-injection master switch. That keeps simple ownership metadata independent from advanced snippets.

Site-Wide JSON-LD

Add Extra Structured Data Only When the JSON Is Valid

Custom schema is for additional structured data that the normal Meta & Schema controls do not already own.

Validation

Decode Before Save

A non-empty custom schema value must decode as JSON into a valid structured object/array. Invalid JSON produces an admin settings error and is not accepted as the new saved schema value.

Normalization

Re-Encode the Parsed Structure

Valid input is stored through WordPress JSON encoding rather than preserving arbitrary whitespace or non-JSON wrappers. At output, it is decoded again and emitted inside an application/ld+json script.

Responsibility

Valid JSON Is Not Automatically Valid Schema

Aegisify verifies JSON syntax, not whether every property is appropriate for Schema.org or a search-engine feature. Administrators still need to avoid duplicating entities already emitted by Aegisify’s normal schema graph.

Head Injection

Allow Advanced Markup, but Protect Aegisify-Owned SEO Tags

The head area supports bounded advanced markup while actively removing several classes of conflicting SEO output.

On save, Aegisify removes NUL bytes and PHP open/close tags. If the snippet contains a meta description, the tag is removed and a warning directs the administrator to Titles & Meta or the per-content SEO fields. If a robots meta contains noindex or nofollow, Aegisify removes it and directs the administrator to the content-level indexing controls.

At output time, the head snippet is filtered again. Negative robots metadata is stripped, meta-description tags are removed again, and custom canonical <link rel="canonical"> output is stripped so Aegisify’s canonical system remains the single owner. The remaining markup is passed through a head-specific allowlist that supports selected meta, link, script, style, and noscript elements/attributes.

SEO posture: this prevents a forgotten copy/paste snippet from quietly creating a second description, contradictory noindex/nofollow directive, or duplicate canonical while preserving space for advanced integrations that belong in the document head.
Footer Injection

Support Integration Markup With a Broader Footer Allowlist

Footer markup goes through the same master switch and SEO-policy stripping, but the allowed HTML surface is broader because visible/integration elements may legitimately belong near the page end.

The current footer allowlist starts with supported head elements and adds bounded attributes for div, span, p, a, img, iframe, br, em, and strong. Common link/image/iframe attributes such as source URLs, dimensions, loading, rel, referrer policy, classes, IDs, and selected data attributes are explicitly enumerated.

That makes the feature useful for approved third-party widgets, measurement snippets, embed containers, or other integration needs, but it should not be treated as an unrestricted application deployment mechanism. Third-party scripts can affect privacy, Core Web Vitals, browser security policy, consent requirements, or availability even when their markup passes Aegisify’s structural filtering.

Input Guardrails

2.9.4 Applies Multiple Layers Before Custom Markup Reaches the Page

These controls reduce accidental SEO conflicts; they do not replace code review for third-party snippets.

120K BoundHead and footer values are truncated to a maximum 20,000 characters before storage.
2PHP Tokens RemovedPHP open and close tags are stripped rather than treated as executable configuration.
3Permission-Aware SaveUsers without unfiltered_html receive WordPress post-HTML sanitization before storage.
4Output AllowlistsPublic rendering applies context-specific wp_kses allowlists even after stored values pass save-time handling.
When to Use Custom Injections

Use the Feature for Missing Integration Surface—not to Rebuild Existing SEO Controls

The safest custom injection is the one that has a clear owner and cannot be configured cleanly elsewhere.

Use dedicated Aegisify controls for titles, meta descriptions, canonicals, robots directives, social metadata, normal schema mappings, sitemaps, Search Console, and IndexNow. Use Custom Injections only for an approved verification/integration/schema need that those surfaces do not already cover.

Performance and privacy still matter. A syntactically accepted script or iframe can create new network requests, consent obligations, CSP changes, rendering delay, or third-party data flows. Test production output and remove integrations that no longer have a business purpose.
Keep Advanced Markup Controlled

Add What You Need Without Duplicating Core SEO Signals

Use Aegisify SEO Custom Injections when a verified integration requires extra markup, while keeping descriptions, canonicals, and indexing policy under their dedicated controls.

Custom Injections FAQ

Common Questions About Advanced Head and Footer Output

Do I need to enable Custom Injections for Google or Bing verification?

The current front-end output renders configured Google/Bing verification values independently of the injection master switch.

Can I paste another meta description into Head Injection?

Aegisify removes meta-description tags from the custom head snippet because the plugin owns the single managed page description through dedicated metadata controls.

Can I set noindex or nofollow through Custom Injections?

Aegisify strips negative robots meta from custom injection and directs those decisions to the per-content indexing controls.

Can I inject a second canonical URL?

Custom canonical links are stripped from rendered head injection so the Aegisify canonical system remains the managed source.

Does valid custom JSON-LD guarantee a rich result?

No. The setting validates JSON syntax. Structured-data correctness, search-engine eligibility, page content, and search-engine decisions remain separate.

Advanced SEO Without Signal Collisions

Keep Custom Code Custom—and Core SEO Policy Centralized

Aegisify SEO gives administrators a bounded place for verification, extra JSON-LD, and integration markup while protecting the metadata and indexing signals the plugin already manages.