Updated

Banner

The banner sections of the covid19.ca.gov homepage is maintained through a WordPress post: new

Tags

  • This post must use the fragment tag.
  • It should also have the translate tag so it can be translated within a day of being updated.
  • Use the staging-only tag if you’d like to stage the banner first for testing.

Changing the title and body text

  1. Edit the title within WordPress as you would any text.
    a. Make sure you do not add bold to this title. It’s an H2, so it’s already bold. Adding a bold tag will change how the font appears.
  2. Edit the body text within WordPress as well.
    a. You can add a link within this body text, but it’s a best practice to keep to just one link in the banner (in the action button).
    b. Avoid adding more than one link to the body text.

The banner uses an action button link.

Action button link in the homepage banner

Updating the link in a button requires editing in HTML view in WordPress. This preserves the custom code that makes the link show up as a button.

  1. Open the three dot menu for the link block and select Edit as HTML.

Edit as HTML option in WordPress block dropdown menu

  1. Replace the link inside the HTML chain (everything inside the quotation marks).

Example of code to replace inside HTML view

  1. Select Update to send the change to production or staging as desired.
Created and maintained by Office of Digital Innovation