WP Manifestindependent plugin directory
manifest / builders / ko-divi-reg-mark-fix

KO: Divi Reg Mark Fix

Automatically formats registered, trademark, and service marks in Divi text and button labels, with adjustable size and placement.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wy4tt34rp/ko-divi-reg-mark-fix/archive/refs/heads/codex%2Finitial-release.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Version 1.0.0. Reusable WordPress frontend typography helper for Divi.

Configuration

Open Settings > Divi Reg Mark Fix. Type the actual ®, ™, or ℠ character in page text and button labels; do not add a special class.

Symbol Default size Default raise
® 60% 0.60em
™ 85% 0.10em
℠ 85% 0.10em

Size follows the surrounding text. Raise follows the symbol's resulting size, with positive values moving up. Admin controls include per-symbol enable, overall enable, dynamic text, existing symbol superscripts, and legacy generated-mark compatibility. The preview changes immediately, but the website only changes after Save Changes.

Installation and rollback

  1. Remove the entire earlier PTI Automatic Trademark Superscripts Integration snippet if installed. Do not remove unrelated code or the existing button and chevron CSS.
  2. Upload and activate the release ZIP.
  3. Configure the settings and review the normal frontend, outside Divi Visual Builder.
  4. Purge page caches if old rendering persists.

Disabling/deactivating and reloading restores the original rendering; no post content is changed. Deactivation retains settings, while the uninstall hook removes this plugin's current-site option only. No remote services, tracking, new database tables, custom content types, or rewrite changes.

Boundaries

Runs inside Divi's #page-container. Skips editing/admin interfaces, form control values, scripts/styles, SVG, MathML, pre/code, third-party frames, and shadow DOM. Plain TM/SM letters are never replaced. Existing superscripts are only styled when they contain a single enabled symbol. The older generated-only .text-only-button.has-reg-mark mark is left to its existing CSS; add a literal ® to the label if it should use the new controls.

data-ko-reg-mark-fix="off" is an optional subtree exclusion. No attributes or classes are required for ordinary use. Frontend markup is built with DOM methods without recreating links or event-bound elements.

Implementation

  • Native WordPress Settings API, manage_options, options.php nonce validation, escaped admin output, allowlisted settings, bounded numeric values, no arbitrary CSS or JavaScript settings.
  • Separate browser assets with versioned enqueue handles; options passed through JSON and validated numeric CSS variables.
  • Branded settings structure and logo adapted from the canonical Vela KO: AccessiYES Widget Manager v1.2.0 and KO: Gravity Forms CSS v1.0.2 templates. Those plugins are not dependencies and remain unchanged.
  • This is separate from KO - Divi 4 Superscript, which adds an editor toolbar button rather than an automatic frontend formatter.

Release validation

Tests live in tests/ and are not included in the upload ZIP. PHP tests use WordPress stubs for isolated validation and do not substitute for installed WordPress verification. Browser tests use local fixtures and the saved button-style behavior, never the live PTI site.

No GitHub remote or public publication is configured by this build. The source is in the designated public plugin folder; release ZIPs belong in the shared archived zips folder.

License

GPL-2.0-or-later. Author: KO. Support: ko@velaagency.com.