Social Icons widget
The complete guide to the WidgetCore Social Icons widget — repeater links with icon and label, open in a new tab, nofollow, labels beside icons and every style control.
The Social Icons widget shows your networks and contact paths (email, phone, website and any other link) in one tidy row. The root of the output is an accessible nav landmark and the icons are inline SVG; the widget has no JavaScript.
| Item | Value |
|---|---|
| Widget name | wgcr-social |
| Panel title | Social Icons |
| Category | WidgetCore Widgets (wgcr) |
| Style / script | wgcr-social / — |
| Root class | .wgcr-social (on a <nav>) |
The “Links” section
The Links (links) repeater has four fields:
| Field | ID | Type | Default | Notes |
|---|---|---|---|---|
| Link title | label | Text | “Network or link name” | Used for the link's aria-label and title; when empty, a generic “Social link” label is used |
| Link URL | url | URL | # | Rows with an empty or invalid URL are dropped |
| Icon | icon | Select | Link | Email / Phone / Link / Globe / Custom (Elementor icon library) |
| Custom icon | custom_icon | Icon | fas fa-globe | Only when “Icon” is set to Custom |
Three sample rows are filled in from the start: Email, Phone and Website.
The “Settings” section
| Control | ID | Type | Default | Notes |
|---|---|---|---|---|
| Show text beside the icon | show_labels | Switcher | Off | When on, each link prints its label beside the icon |
| Open in a new tab | new_tab | Switcher | On | Adds target="_blank" with rel="noopener noreferrer" |
| Add nofollow to links | nofollow | Switcher | On | Adds nofollow to the rel |
HTML output
<nav class="wgcr-social" aria-label="Social links">
<ul class="wgcr-social-list">
<li>
<a class="wgcr-social-link" href="#" target="_blank" rel="noopener noreferrer nofollow"
aria-label="Email" title="Email">
<span class="wgcr-social-ic">…svg…</span>
<span class="wgcr-social-text">Email</span>
</a>
</li>
</ul>
</nav>
| Class / role | Purpose |
|---|---|
nav.wgcr-social | The navigation landmark with a localized aria-label (“Social links”) |
.wgcr-social-list | The ul of links |
.wgcr-social-link | The link itself, with aria-label and title equal to its label |
.wgcr-social-ic | The SVG icon container (a custom library icon is aria-hidden) |
.wgcr-social-text | The text label (only when “Show text beside the icon” is on) |
If no link is valid, the nav is not printed at all. Even when the visible labels are off, every link keeps its aria-label, so screen readers still announce each destination.
Style sections
- General: “Horizontal alignment” (start / center / end) and “Gap between links”.
- Link: “Link background” and “Icon and text color” in the normal state; “Background on hover” and “Color on hover” for hover; plus “Icon size”, “Link padding” and “Link corner radius”.
- Link texts: “Text color” and the label typography.
Custom style example
/* Round buttons with a soft hover lift */
.wgcr-social .wgcr-social-link { border-radius: 50%; transition: transform .2s ease; }
.wgcr-social .wgcr-social-link:hover { transform: translateY(-2px); }