WidgetCoreWidgetCore Documentation

Icon Box widget

The complete guide to the WidgetCore Icon Box widget — library or custom icon, icon position, title tag, the title link with noopener and nofollow, hover states and style controls.

The Icon Box widget puts an icon, a title and a short description together in one small card — the classic pattern for “course features”, “services” or “benefits”. The output has no JavaScript.

ItemValue
Widget namewgcr-iconbox
Panel titleIcon Box
CategoryWidgetCore Widgets (wgcr)
Style / scriptwgcr-iconbox / —
Root class.wgcr-iconbox

The “Content” section

ControlIDTypeDefaultNotes
IconiconIconfas fa-starFrom the Elementor icon library (SVG or font icon)
Icon positionlayoutSelectTopTop (above the text) / Side (beside the text)
TitletitleText“Box title”Printed with the selected heading tag
DescriptiondescriptionTextarea“A short note about this feature…”Sanitized with wp_kses_post
Title tagtitle_tagSelectH3H2 to H6 or DIV
ControlIDTypeDefaultNotes
Title linklinkURLEmptyWhen set, the title is printed inside an <a>

Invalid URLs (like javascript:) are ignored. The URL control's own “open in new tab” option produces target="_blank" with rel="noopener noreferrer", and its nofollow option completes the same rel.

HTML output

html
<div class="wgcr-iconbox" data-layout="top">
  <span class="wgcr-iconbox-ic" aria-hidden="true">…</span>
  <div class="wgcr-iconbox-body">
    <h3 class="wgcr-iconbox-title"><a href="…" rel="noopener noreferrer nofollow"><span>Box title</span></a></h3>
    <div class="wgcr-iconbox-text">A short note about this feature…</div>
  </div>
</div>
ClassPurpose
.wgcr-iconboxWidget root; data-layout carries top or side for the CSS
.wgcr-iconbox-icThe icon container (the icon itself is aria-hidden)
.wgcr-iconbox-bodyThe column of title and description
.wgcr-iconbox-titleThe title with the selected tag
.wgcr-iconbox-textThe description

If the title, the description and the icon are all empty, the widget prints nothing; each empty part on its own is skipped too. Title and description support inline editing.

Style sections

  • Icon: “Icon size”, “Icon box size”, “Icon color”, “Icon background”, “Icon corner radius” and, in the hover state, “Icon color on hover” and “Icon background on hover”.
  • Title and description: “Title color”, “Description color”, both typographies and “Icon to text gap”.

Custom style example

css
/* A round icon on a soft background */
.wgcr-iconbox .wgcr-iconbox-ic { border-radius: 50%; background: #eef2f7; }