DOCS

Circular Progress

FREE block. Displays a ring-shaped SVG gauge filled to the percentage of the fundraising goal that has been reached, with the percentage number in the center.

Circular progress example

Why use this

The circular gauge is a visual alternative to the horizontal progress bar. It works well in compact card layouts and sidebars where a wide bar would not fit cleanly.

What it does

The block generates an inline SVG with two circles: one for the track and one for the filled arc. The arc length is calculated from the percentage using stroke-dasharray and stroke-dashoffset. A gradient is applied to the arc using the same global Appearance color settings as the Progress Bar. The percentage number is rendered as centered SVG text.

When strokeWidth or fontSize are left at 0, the block auto-calculates sensible values based on the overall size attribute (strokeWidth = max(8, size/15), fontSize = size/3).

The block supports Query Loop context, so it can be used in archive grids.

How to use it

  1. Add the Circular Progress block from the Fundations category.
  2. Set the overall size in pixels using the Size option.
  3. Leave stroke width and font size at 0 for automatic sizing, or enter specific values.
  4. To hide the percentage number inside the ring, toggle Show Percentage off.
  5. To change the ring color, go to Settings > Fundations > Appearance.
Circular progress inspector

Settings and options

OptionTypeDefaultDescription
Sizenumber120Total SVG diameter in pixels
Stroke widthnumber0Ring thickness in pixels; 0 = auto (max(8, size/15))
Font sizenumber0Center text size in pixels; 0 = auto (size/3)
Font weightnumber0Center text weight; 0 = auto (700)
Show percentagebooleantrueDisplay the percentage number inside the ring

Ring gradient colors are controlled globally at Settings > Fundations > Appearance (get_fund_progress_color, get_fund_progress_color_end).

What you can and cannot do

  • You can control the size, stroke thickness, and whether the percentage is shown.
  • You cannot set the ring color per block. All circular progress blocks share the global gradient.
  • The block does not expose an output filter.
  • The block shows nothing meaningful on non-action pages unless demo mode is active.

Troubleshooting

Ring appears but shows 0%: The action’s goal or raised amount is missing. Check the action’s meta in the admin.

Ring gradient does not change: Colors are set at Settings > Fundations > Appearance, not in the block.

Text looks too large or too small: Set explicit values for Font size and Stroke width rather than relying on auto-calculation.