Customize your pregnancy calculator: colors, fonts and labels

Blog

7 min read

You customize each calculator’s look and wording in its own settings: colors, fonts and form layout on the Styling tab, the title on the Settings tab, the date format on the Calculation tab, and the texts visitors read in Labels Customization. There is one layout template, so the work is matching its colors and type to your site, writing labels your visitors understand, and then checking the result on a phone and for accessibility.

Where are the design settings?

Every calculator in our pregnancy calculator plugin for WordPress has its own settings. Open Pregnancy & Ovulation Pro → All Calculators and edit one; its Calculator Settings box has six tabs: Settings, Calculation, Styling, Integrations, Labels Customization and Email/PDF templates. Because the settings belong to the calculator, your pregnancy and ovulation pages can look different, and a change to one calculator doesn’t touch the others. While you are logged in as an administrator, an Edit Calculator link under the calculator on your page takes you straight back to its settings. If you haven’t added a calculator yet, start with how to add a pregnancy calculator to WordPress.

How do you change the calculator’s colors?

On the Styling tab, under Color settings:

  • Color scheme: nine preset schemes.
  • Accent Color: a color picker for your brand color (the default is #325878). The PDF’s header band uses it too.
  • Website Background, Light or Dark: this only changes the preview in wp-admin, to show how the calculator looks on a light or dark page. It doesn’t change the calculator on your site.

After you pick colors, check the contrast of every text that sits on them, buttons included. WCAG 2.2, the W3C’s accessibility standard, asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text; a contrast checker gives you the ratio for any two colors.

Color shouldn’t be the only way information comes across either (WCAG 2.2, success criterion 1.4.1). The ovulation calendar colors the period, fertile, ovulation and test days, but the summary below it also gives the fertile window, the most probable ovulation date, the pregnancy test date and the next period in words, and clicking a day names its phase. Visitors who can’t tell the colors apart still get the dates.

How do you change fonts and text size?

  • Base font size: Small (14 px), Normal (16 px, the default) or Large (18 px).
  • Headings font type: the bundled Barrio font (the default), a Google Font (1,052 to choose from) or Disabled. Type a sample into Heading Example Text to preview it.

A Google font loads from fonts.googleapis.com, so your visitors’ browsers connect to Google to fetch it. If that matters for your privacy policy or consent setup, account for it there, or use the bundled font or Disabled instead; this is not legal advice.

Whatever you pick, zoom your browser to 200 percent on the calculator’s page: WCAG asks that text can be resized up to 200 percent without loss of content or functionality.

How do you set up the title and the form layout?

On the Settings tab, Main Calculator Title has Show Title (on by default), the title text (default: Pregnancy & Ovulation Calculator), Title alignment (left, center or right) and Title tag (h1 to h4, p or div). Your theme probably prints the page title as an h1 already, so h2 usually suits the calculator’s title; or hide the title when the page heading already says what the calculator does. WCAG asks that headings describe their topic, so a title like “Due date calculator” tells visitors more than the default.

On the Styling tab, Form style has “Show form description”, which shows the line “Enter your email for results” under the form heading, and Form columns: 2 columns (the default) or 1 column. Choose 1 column if the calculator sits in a narrow content area or a sidebar.

How do you change labels, messages and baby-size cards?

Labels Customization has four sub-tabs:

  • Calculator: 72 labels for the inputs, the form, and the pregnancy and ovulation results.
  • Baby Sizes: the name, image, description and IVF description of each of the 42 weekly cards. You can upload your own illustrations in place of the fruit and vegetable pictures.
  • Datepicker: the seven day abbreviations and twelve month names.
  • Messages: nine validation and success messages.

Use them to make the calculator sound like the rest of your site and speak your visitors’ language; translating the calculator covers non-English and multilingual sites. WCAG asks for labels or instructions where people enter data, and for input errors to be described in text (success criteria 3.3.2 and 3.3.1), so make each label say exactly what goes in the field and write the messages in plain words. Some defaults still carry the plugin’s older name: the success message after an email is sent reads “Ultimate Pregnancy & Ovulation Calculator results have been successfully sent to your email address!”, so reword it in your own voice.

Take care with medical wording. The plugin counts the weeks of pregnancy from the first day of the last period, the standard way: ACOG explains that the 40 weeks of pregnancy include an extra two weeks at the beginning, before the pregnancy has started. If you rewrite result labels or baby-size descriptions, keep that meaning, and have a doctor or midwife review the new texts before they go live.

Keep the estimate note, too. The result screen shows “* the results of this calculator are estimations only”; you can reword it in Labels Customization, but keep it next to the result, and add a line on the page saying that the calculator doesn’t replace advice from a doctor or midwife.

How do you brand the emails and the PDF?

On the Email/PDF templates tab you write the subject and body of the email to the visitor and of your admin notification, and set the PDF’s header logo (JPG, PNG or GIF, up to 200 KB), header text and footer text. The defaults name the plugin, not your practice: the PDF header reads Ultimate Pregnancy & Ovulation Calculator until you change it. The default email text and PDF footer both say the dates are estimates; keep that, in your own words if you like.

How do you set the date format and the first day of the week?

On the Calculation tab, Date Format offers five formats: dd MM yy (the default, for example 05 December 2026), mm/dd/yy, dd/mm/yy, yy-mm-dd and dd.mm.yy. The format you pick, with translated month names, is used in the results, the emails and the PDF. Visitors in the US expect the month first, while many other countries write the day first; the default spells out the month, so nobody misreads it. Week Start sets whether the date picker’s weeks begin on Sunday (the default) or Monday.

Will the calculator work on phones?

Yes. The layout is responsive: the stylesheet adapts at narrow widths (600 px and 425 px), and the ovulation calendar shows one month when the calculator is narrower than 700 px and two months side by side otherwise. Dates are chosen from a calendar pop-up rather than typed, so a mistyped date can’t slip in.

Test it on a real phone before you publish anyway: pick dates in each method, submit the form, open the emailed result and download the PDF. WCAG gives a useful benchmark: content should still work at a width of 320 CSS pixels without scrolling in two directions.

What should you check for accessibility?

  • Text, including button text, meets 4.5:1 contrast, or 3:1 for large text.
  • Every field has a clear label, and every message says what to do next.
  • The page works at 200 percent zoom and at 320 CSS pixels wide.
  • You can reach every field and button with the keyboard alone. If something in the calculator can’t be reached, tell us.

To compare your settings with ours, open the pregnancy calculator demo and the ovulation calculator demo: both use a pink accent color, a one-column form and a hidden title.

All posts