Add a Sitewide Announcement Banner to GeneratePress with AI
A slim announcement bar above your GeneratePress header, built natively with a GP Elements hook, no banner plugin needed.
Prerequisites
A connected WordPress site running GeneratePress with GP Premium (the Elements module) and the WPVibe plugin active.
My site runs GeneratePress with GP Premium. Add a sitewide announcement bar above the site header that says [your announcement, for example: Summer sale, 20 percent off everything through Friday] and links to [URL]. Use [#hex color] as the bar background with readable text, and keep it a single slim line. Build it as a GP Elements hook element so no extra plugin is needed. Publish it, verify it shows above the header on the homepage and on one inner page, and give me the Element's edit link. Also tell me exactly how to turn it off when the promotion ends.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Add a Sitewide Announcement Banner to GeneratePress with AI” recipe from the WPVibe cookbook on my connected site.
A sale, a holiday closure, a launch: the classic fix is installing yet another plugin just to show one line of text above your header. GeneratePress can already do this natively through GP Premium’s Elements module and the theme’s hook system, but wiring a hook Element by hand has three settings that fail silently if you miss one, so most people never bother.
The AI creates a hook Element attached above the site header, sets the display conditions so it shows site-wide, styles the bar in your color with readable text, and publishes it. Because it is a native GP Element rather than a plugin, there is nothing new to update or slow the site down, and it lives in the same Elements screen as the rest of your theme customizations.
Paste the prompt with your announcement text, link, and color. The AI verifies the bar is actually rendering on the homepage and an inner page, then hands you the edit link. When the promotion ends, unpublish or delete the Element and the bar is gone.
Outcome
A slim announcement bar live above your site header on every page, editable as a normal GP Element and removable in one click when the promotion ends.