WidgetCoreWidgetCore Documentation

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.

ItemValue
Widget namewgcr-social
Panel titleSocial Icons
CategoryWidgetCore Widgets (wgcr)
Style / scriptwgcr-social / —
Root class.wgcr-social (on a <nav>)

The Links (links) repeater has four fields:

FieldIDTypeDefaultNotes
Link titlelabelText“Network or link name”Used for the link's aria-label and title; when empty, a generic “Social link” label is used
Link URLurlURL#Rows with an empty or invalid URL are dropped
IconiconSelectLinkEmail / Phone / Link / Globe / Custom (Elementor icon library)
Custom iconcustom_iconIconfas fa-globeOnly when “Icon” is set to Custom

Three sample rows are filled in from the start: Email, Phone and Website.

The “Settings” section

ControlIDTypeDefaultNotes
Show text beside the iconshow_labelsSwitcherOffWhen on, each link prints its label beside the icon
Open in a new tabnew_tabSwitcherOnAdds target="_blank" with rel="noopener noreferrer"
Add nofollow to linksnofollowSwitcherOnAdds nofollow to the rel

HTML output

html
<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 / rolePurpose
nav.wgcr-socialThe navigation landmark with a localized aria-label (“Social links”)
.wgcr-social-listThe ul of links
.wgcr-social-linkThe link itself, with aria-label and title equal to its label
.wgcr-social-icThe SVG icon container (a custom library icon is aria-hidden)
.wgcr-social-textThe 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

css
/* 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); }