WP Manifestindependent plugin directory
manifest / privacy / consent-fallback

Consent Fallback

A tool that provides a simple alert if a form or other embed is blocked due to Privacy Consent settings. Initial version is a WordPress plugin, to be expanded to Webflow later.

by Hencove · github.com/hencove/consent-fallback · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/hencove/consent-fallback/archive/refs/heads/main.zip

A small, CMP-agnostic WordPress plugin that displays a configurable message inside embed wrappers (HubSpot forms, Greenhouse job boards, etc.) that fail to populate — typically because cookie consent has been declined, but also useful for ad blockers, network errors, or third-party outages.

The plugin does not talk to any specific Consent Management Platform. It just watches the DOM: if a marked wrapper hasn't been populated by the configured timeout, the fallback message is injected. If the embed populates later (e.g. the user grants consent without a page reload), the fallback is removed.

Disclaimer

This plugin is provided as-is, without warranty of any kind. Hencove is not responsible for how it is used, cannot offer support, and accepts no liability for bugs, data loss, or other issues that may arise from its use. Use at your own risk.

Install

Drop the plugin folder into wp-content/plugins/consent-fallback/ (or clone the repo there) and activate it in Plugins → Installed Plugins.

Releases provide zip files for uploading to Plugins panel.

The plugin is self-contained — all JS and CSS are served from the same origin as the site, so a CMP can't accidentally block them.

Usage

Wrap each embed in a .consent-fallback element. The plugin's JS finds those wrappers and watches them. Two ways to produce the markup:

1. Direct HTML (theme Code module, custom HTML block, etc.)

<div class="consent-fallback" data-fallback-label="form">
  <!-- existing HubSpot or Greenhouse embed code, unchanged -->
  <script>
    ...hubspot snippet...
  </script>
</div>

2. Shortcode

[consent_fallback label="form"]
  <!-- embed code -->
[/consent_fallback]

data-fallback-label (or the label shortcode attribute) is interpolated into the message via the {label} placeholder. Use just the name of the thing being blocked — e.g. form, job board, videonot this form, since the default message template already begins with "This". If omitted, it defaults to content.

What counts as "populated"?

Any direct child element that is not `