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.
| Item | Value |
|---|---|
| Widget name | wgcr-iconbox |
| Panel title | Icon Box |
| Category | WidgetCore Widgets (wgcr) |
| Style / script | wgcr-iconbox / — |
| Root class | .wgcr-iconbox |
The “Content” section
| Control | ID | Type | Default | Notes |
|---|---|---|---|---|
| Icon | icon | Icon | fas fa-star | From the Elementor icon library (SVG or font icon) |
| Icon position | layout | Select | Top | Top (above the text) / Side (beside the text) |
| Title | title | Text | “Box title” | Printed with the selected heading tag |
| Description | description | Textarea | “A short note about this feature…” | Sanitized with wp_kses_post |
| Title tag | title_tag | Select | H3 | H2 to H6 or DIV |
The “Link” section
| Control | ID | Type | Default | Notes |
|---|---|---|---|---|
| Title link | link | URL | Empty | When 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
<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>
| Class | Purpose |
|---|---|
.wgcr-iconbox | Widget root; data-layout carries top or side for the CSS |
.wgcr-iconbox-ic | The icon container (the icon itself is aria-hidden) |
.wgcr-iconbox-body | The column of title and description |
.wgcr-iconbox-title | The title with the selected tag |
.wgcr-iconbox-text | The 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
/* A round icon on a soft background */
.wgcr-iconbox .wgcr-iconbox-ic { border-radius: 50%; background: #eef2f7; }