Skip to main content
Cookbook Maintenance Orbit Fox

Add a Cookie Notice Bar Linked to Your Privacy Policy with Orbit Fox and AI

A cookie notice bar with your wording, linked to your real privacy policy page, checked on your home page.

Difficulty Beginner
Time ~10 min

Prerequisites

A site connected to WPVibe running Orbit Fox 3.0.11 or newer (tested on 3.0.14, free; 3.0.10 could link the notice to the wrong page) on WordPress 6.9 or newer, with an administrator account, and a published privacy policy page.

The prompt
My WordPress site uses Orbit Fox. Show a cookie notice bar on my site that links to my privacy policy page. Text: [We use cookies to count visits and remember your preferences.] Accept button: [Got it]. Policy link: [Read our policy].

1. Run discover_abilities with category orbit-fox. If either orbit-fox/list-modules or orbit-fox/configure-module is missing, stop and tell me to install or update the free Orbit Fox plugin (3.0.10 or newer, on WordPress 6.9 or newer). Run run_wp_cli with: plugin get themeisle-companion. If its version is older than 3.0.11, stop and tell me to update Orbit Fox first: 3.0.10 could link the notice to the wrong page.
2. Run rest_api GET /wp/v2/plugins with status active. If a cookie consent or cookie notice plugin is active (WPConsent, Cookiebot, CookieYes, Complianz, Cookie Notice or similar), tell me I would get two banners, and stop unless I say to go on. Run orbit-fox/list-modules with module_id policy-notice and note its settings and the policy_page choices (each value is a page ID). Also run orbit-fox/list-modules with module_id social-sharing.
3. Find my privacy policy page. Run run_wp_cli with: option get wp_page_for_privacy_policy, and call the result WP_POLICY_ID. If it is a page ID other than 0, that page is WordPress's own Privacy Policy page: run rest_api GET /wp/v2/pages/WP_POLICY_ID and tell me its title and status. If it is published, ask me whether to use it. If I say no, or it is 0, or that page is not published, run rest_api GET /wp/v2/pages with search privacy and status publish (then cookie, then policy), show me what you find and ask which one. Call the page we use POLICY_PAGE_ID. If there is none, stop and tell me to publish a privacy policy page first, or the bar's link goes nowhere.
4. Tell me that once the notice is on, every later save of its settings also makes POLICY_PAGE_ID WordPress's Privacy Policy page (Settings, Privacy). If step 2 showed policy-notice active with enable_policy_notice 1, tell me the save in step 6 will do that right away. If WP_POLICY_ID is a page other than 0 and other than POLICY_PAGE_ID, tell me those saves will replace it with POLICY_PAGE_ID, and wait for my yes. Never set policy_page to 0 (Default Core Policy): saved while the notice is on, 0 clears WordPress's own Privacy Policy page setting and the bar's link goes nowhere.
5. Build one orbit-fox/configure-module call with module_id policy-notice, active true and these settings (a list of objects, each with name and value, every value a string such as "1"): enable_policy_notice 1, policy_page POLICY_PAGE_ID (which must be one of the policy_page choices), policy_notice_text, notice_accept_label and notice_link_label with my wording as plain text (tags are stripped). Run it with dry_run true. If it returns orbit_fox_invalid_settings, tell me which setting and why, fix only that, and run the dry run again. Show me the changes in plain words. Wait for my yes.
6. On my yes, run the same call with dry_run false.
7. Run run_wp_cli with: option get wp_page_for_privacy_policy again. If it is POLICY_PAGE_ID, tell me WordPress's Privacy Policy page now matches. If not, tell me it is still the old one and will switch to POLICY_PAGE_ID the next time the notice's settings are saved, or that I can set it now in Settings, Privacy. Then run get_page_html on my home page with selector .obfx-cookie-bar and confirm it shows my text, my two button labels and a link to the policy page's address. The bar is hidden until its script shows it, so it is in the HTML even though it isn't visible there. If it is missing, tell me a page cache may still be serving the old page and to clear it.
8. If step 2 showed social-sharing active with mobile_position 0, tell me that on phones the share bar along the bottom covers the notice's Accept button, and ask whether to move the phone share buttons to the side (orbit-fox/configure-module with module_id social-sharing and settings holding one item: name mobile_position, value "1"). Change it only on my yes.
9. List each change so I can spot-check it. Remind me this is a notice, not a consent tool: it has no Decline button and doesn't block cookies or scripts before Accept. To remove it: orbit-fox/configure-module with module_id policy-notice and settings holding one item: name enable_policy_notice, value "0".
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Add a Cookie Notice Bar Linked to Your Privacy Policy with Orbit Fox and AI” recipe from the WPVibe cookbook on my connected site.

Visitors expect to be told your site uses cookies, with a link to your privacy policy. Orbit Fox has a simple notice bar for that, but its default wording, its policy page choice and a quiet link to WordPress’s own privacy setting make it easy to point at the wrong page, or at nothing.

The AI finds your privacy policy page, writes your wording into Orbit Fox’s notice bar and shows you every change before saving. It checks the bar on your home page and that its link goes to your policy. It never chooses Orbit Fox’s Default Core Policy option, because saving that later clears WordPress’s own Privacy Policy page setting.

This is a notice, not a consent tool: it has no Decline button and doesn’t hold back cookies or tracking scripts until someone accepts. If you need that, use a consent plugin such as WPConsent, set up in this recipe. Accept hides the bar for a year; the X hides it until the next page. Once the bar is on, the page it links to also becomes WordPress’s Privacy Policy page the next time its settings are saved, so the AI tells you if those differ.

Outcome

Every page shows a cookie notice bar with your wording and a working link to your privacy policy page.