Skip to content

Header Buttons

The header can show up to two buttons, such as Book a visit and Call us. Each button either follows a link or opens a Promptless WP popup, and takes its colours and shape from Promptless WP’s button styles, so it matches the buttons in your sections.

  1. Go to Appearance → Customize → Header → Header CTA.
  2. Enter Button 1 Text and Button 1 URL.
  3. Leave Button 1 Action on Link to a page or URL, or choose Open a popup and pick the popup in Button 1 Popup.
  4. Choose Button 1 Style and Button 1 on Mobile.
  5. For a second button, fill in the Button 2 fields the same way.
  6. Select Publish.

A button appears when it has text and something to do: a URL, or a popup that exists. To remove a button, clear its text.

Open a popup needs Promptless WP with at least one popup saved in Promptless WP → Modals; until then Button 1 Popup says No popups yet. The popup, and any form inside it, loads on every page that shows the header, and opens from the header bar and from the phone menu. A popup button is a real button: Enter opens it, and focus returns to it when the popup closes. See Modals (Popups).

Keep Button 1 URL filled in as well. If the popup is deleted later, or Promptless WP is turned off, the button follows that URL instead. With no URL, the button is hidden, so visitors never get a button that does nothing.

OptionChoicesDefault
Button 1 Text, Button 2 TextAny short label.Empty
Button 1 URL, Button 2 URLA full URL or a site path. Also used if the button’s popup is deleted.Empty
Button 1 Action, Button 2 ActionLink to a page or URL, Open a popupLink to a page or URL
Button 1 Popup, Button 2 PopupOne of your Promptless WP popups. Shown when the action is Open a popup.None
Button 1 StylePrimary, Secondary, Ghost / OutlinePrimary
Button 2 StyleAs aboveSecondary
Button 1 on MobileKeep in header bar, Move into mobile menuKeep in header bar
Button 2 on MobileAs aboveMove into mobile menu
Mobile Menu Button PositionTop of menu, Between top bar and menu, Bottom of menu (default)Bottom of menu

The styles use the Primary, Secondary and Ghost button settings from Promptless WP’s Global Settings, in their compact size.

On screens wider than the menu breakpoint, every button shows in the header row, whatever its on Mobile setting. Below the breakpoint:

  • A button set to Keep in header bar stays next to the menu button.
  • A button set to Move into mobile menu appears inside the menu drawer when it opens.
  • Only one button can stay in the header bar. If both are set to Keep in header bar, button 2 moves into the menu.
  • A long label on the button in the header bar, such as “Book a consultation”, wraps onto a second line on a phone, so the menu button stays in view. A label that fits stays on one line.
  • A text site title beside the button wraps too, between words, so neither the title nor the button label is cut off. An image logo keeps its size.
  • If the button still cannot fit beside the site title, it moves into the phone menu on its own, as if set to Move into mobile menu. On a wider phone or when the title is shorter, it stays in the bar.

Mobile Menu Button Position places the moved buttons in the drawer. Between top bar and menu means between the top bar’s links and the main menu, so it only applies when the top bar is set to Collapse into Hamburger Menu. Without that, the buttons go to the top of the menu instead.

The breakpoint is set in Header → Mobile Menu Breakpoint; see Header.

An AI assistant connected through Promptless WP’s connector can set every option on this page with wordpress_header_set. A button that opens a popup needs Promptless WP 1.8.12 and the connector program 1.2.5 or later. See Connector Tools.

  • The button does not appear. It needs text, and either a URL or, with Open a popup, a popup that still exists.
  • A popup button opens a page instead. Its popup was deleted or Promptless WP is not active, so it follows its URL. Choose another popup.
  • A button set to stay in the header bar is in the phone menu. It did not fit beside the site title at that screen width. Shorten the label or the site title, or use an image logo.
  • Button 2 is in the menu on phones although it is set to stay. Button 1 is also set to stay, and only one fits.
  • The buttons are at the top of the drawer, not between the top bar and the menu. The top bar is off, has no menus, or is set to Always Show at Top.
  • Two buttons is the limit. For more calls to action, add them as menu items or put them in a section.