Wiozen Market

How do you change site colors in a WordPress block theme, and why doesn't my color show everywhere?

In short:In Wiozen Theme you change site colors in the "Colors" card on the Settings tab under Appearance › Wiozen Theme: Accent, Text, Background and Footer background. The in-between shades are worked out from these four. If a color you picked doesn't show, check three places: colors changed in Site Editor › Styles win over the panel, dark mode uses the design's dark palette, and category labels and rings take their colors from a separate category palette.

Changing the four colors in the panel

  1. Open Appearance › Wiozen Theme and go to the Settings tab.
  2. In the "Colors" card, click the box of the color you want to change and pick one, or type a hex code such as #1d5fbf.
  3. Click "Save settings" at the bottom of the page and reload the site in a new tab.

The card has four colors:

  • Accent: links, buttons, labels and highlights. The hover shade and the text color on accent backgrounds follow it.
  • Text: headings and body text.
  • Background: the page background. Muted text, soft tints and dividers are worked out from the text and background colors.
  • Footer background: the footer color. Footer text is light, so pick a dark color.

The panel opens on a licensed site, one connected to a Wiozen account. Details are in the license guide.

Each design keeps its own colors

Colors are saved per design. If you turn the News design's accent from red to blue and then switch to Food, Food opens with its own colors; when you go back to News, the blue accent returns. The card's description says which design's colors you're editing.

The "Default" button in the color picker returns a color to the design's own. A color equal to the design's color isn't saved separately; it keeps following the design's own color.

What switching designs changes besides colors is in the design switch guide.

Why doesn't the color I picked show?

The most common reason is Site Editor › Styles. If you changed the color palette or the site colors there, those changes win over the panel. The panel then shows the note "Colors were also changed in Site Editor › Styles, and those stay on top of these" under the card. To use the panel's colors, reset the color changes in Styles.

Other reasons:

  • Dark mode: if the visitor turned on dark mode, the design's dark background and text color are used. The accent you picked in the panel carries over, lightened until it reads on the dark background; the background, text and footer colors don't show in dark mode. Details are in the dark mode guide.
  • Category colors: category labels, the accent on category pages and the rings of category stories come from the design's category palette, not from the four colors.
  • Caching: if you use a caching plugin, clear the cache after saving.

Where do category colors come from?

Each design has an eight-color category palette. The theme orders categories by when they were created (their ID number) and hands out these colors in turn; the ninth category gets the first color again. When the design changes, the palette changes too.

Category colors have no setting in the panel. A developer can change the palette with the theme's code filter; the four colors in the "Colors" card don't affect them.

Readability warnings and fonts

After you save, the theme measures the contrast of color pairs and shows a warning in the card if something is off:

  • If the ratio between text and background is below 4.5:1: "The text color is hard to read on the background."
  • If the ratio between accent and background is below 3:1: "Links in the accent color are hard to read on the background."
  • If the ratio between white text and the footer background is below 4.5:1: "Light footer text is hard to read on this footer background."

A warning doesn't block saving; it only tells you. Before changing colors you can save the current settings to a file with the settings backup.

Fonts aren't in the panel. You change them in Appearance › Editor › Styles; each design comes with its own fonts.

Frequently asked questions

Should I change colors in the panel or in the Site Editor?
The panel is easier for the four main colors: it works out the shades, checks contrast and keeps them separately for each design. Colors in Styles stay in effect when you switch designs and win over the panel. Not using both at once avoids confusion.
Can I change colors without a license?
While the panel is closed you can change them in Site Editor › Styles. The shades and warnings then don't come from the panel.
Can I give a category its own color?
There's no such setting in the panel. Category colors are handed out in turn from the design's palette.

For a theme you can recolor with four colors, download Wiozen Theme for free.

Download free