Heading (UB) Block

The Heading (UB) block in Ultimate Blocks lets you add a heading (H1 to H6) with its own colors, Google Fonts, letter spacing, line height and spacing, without touching code. You can also highlight part of the heading with a different color and font style. The block is completely free and has no Pro only settings (Pro adds the Visibility Control, Animation and Saved Styles extensions).

Block name in the editorHeading (UB)
PlanFree
Best forStyled section titles, landing page headlines, hero text and headings with a highlighted word
Live demoSee the Heading (UB) block in action

What you can use it for #

  • Give a landing page headline its own font, size and color without changing your theme.
  • Highlight one or two key words in a heading, for example a price or a product name.
  • Add a heading with a background color to mark the start of a new section.
  • Use a Google Font for headings only, while your body text keeps the theme font.
  • Show bigger or smaller headings on one page while keeping the right H2 or H3 level for SEO.

How to add the Heading (UB) block #

  1. Open the post or page in the WordPress block editor.
  2. Click the + (Block Inserter) button.
  3. Search for Heading (UB) and click the block to add it.
  4. Type your heading where it says Write heading…

The block starts as an H2. You can change the level from the block toolbar (the H icon) or from the General panel in the sidebar.

Tip: You already have core Heading or Paragraph blocks? Select one, click the block icon in the toolbar and choose Heading (UB) to transform it. Your text, level, alignment and most styles are kept. You can also type #h2 (or #h1 to #h6) followed by a space in an empty paragraph to create the block at that level.

Highlight part of a heading #

The Highlight feature lets you style a few words inside the heading differently from the rest, for example with a yellow background.

  1. Select the words you want to highlight in the heading.
  2. In the block toolbar, open the formatting dropdown (the small arrow next to the bold, italic and link buttons) and click Highlight.
  3. The selected words get a yellow background by default.
  4. Open the Highlight Settings panel in the block sidebar to change how the highlighted words look.

Highlight Settings appears in the sidebar only after the heading has at least one highlighted part. It has these options:

  • Highlight Colors: set the Highlight Text Color and Highlight Background Color.
  • Highlight Font Size: make the highlighted words bigger or smaller than the rest of the heading (12 to 100 px).
  • Highlight Text transform: show the highlighted words in Uppercase, Lowercase or Capitalize, or keep them as typed with None.
  • Highlight Letter Spacing: add or remove space between letters (-2 to 6 px).
  • Highlight Font Weight: choose Normal, Bold or a numeric weight from 100 to 900.

To remove a highlight, select the highlighted words and click Highlight again.

Settings tab #

Select the block and open the block sidebar on the right. The Settings tab (gear icon) has these panels:

General #

  • Heading Level: choose H1, H2, H3, H4, H5 or H6. Use one H1 per page (usually the post title), H2 for main sections and H3 for sub sections. Changing the level resets a custom font size and line height so the new level uses its default size.
  • Heading Alignment: align the heading left, center or right.

Highlight Settings #

Shown only when the heading has highlighted text. See the Highlight part of a heading section above for every option.

Styles tab #

Switch to the Styles tab (half-circle icon) to change the look of the heading:

Colors #

  • Heading Text Color: the color of the heading text.
  • Heading Background Color: a background color behind the whole heading. Add some padding in Dimension Settings so the text does not touch the edges.

Typography #

  • Font Size: set the size in pixels (12 to 100).
  • Text Transform: None, Uppercase, Lowercase or Capitalize.
  • Font Family: pick from a long list of Google Fonts, or keep Default to use your theme font. The chosen font loads from Google Fonts on your site.
  • Letter Spacing: space between letters, from -2 to 6 px.
  • Font Weight: Normal, Bold or 100 to 900.
  • Line Height: the height of each line in pixels (10 to 120). Useful for headings that wrap onto two lines.

Dimension Settings #

  • Padding: space inside the heading, between the text and the edge of the background.
  • Margin: space outside the heading. Negative values are allowed if you need to pull the heading closer to the block above.

Extensions you can use with this block #

You find these panels at the bottom of the Settings tab. In Visibility Control (Pro), turn on Hide the block from everyone to hide the heading completely:

Or pick a User Role so only those users see the heading:

To show or hide the heading for a period of time, turn on Enable Schedule, set the From and To dates, and use Hide when schedules apply if the heading should be hidden during that period:

In Animation (Pro), choose an animation, then set Repeat, Repeat Count, Duration (Seconds) and Delay (Seconds). Click Preview Animation to see it in the editor:

In Custom CSS, type selector to target this heading, for example selector { text-shadow: 0 2px 4px rgba(0,0,0,.2); }:

In Responsive Control, turn on Hide On Desktop, Hide On Tablet or Hide On Mobile. This is handy when you want a short headline on phones and a longer one on desktop:

Frequently asked questions #

What is the difference between the Heading (UB) block and the core Heading block?

Is the Heading (UB) block good for SEO?

How do I highlight a word in a heading?

Can I use Google Fonts in headings?

Can I convert my existing headings to Heading (UB)?

Is the Heading (UB) block free?

Related docs #

Updated on November 7, 2026

What are your feelings

  • Happy
  • Normal
  • Sad