WordPress Tutorials

Add Social Icons in WordPress Without a Plugin

Social icons are one of the smallest elements on a website and one of the most clicked. A small row of recognisable icons in your header or footer tells visitors where else they can find you, and it does it without a single extra word. WordPress includes a built-in Social Icons block that handles this job well, with no plugin and no extra scripts to slow your site down.

In this guide you will learn four plugin-free ways to add social icons, from the built-in block to a hand-coded SVG method. You will also learn how to place icons across your whole site, style them to match your brand, and make them accessible to every visitor.

Why Use the Built-In Social Icons Block?

The Social Icons block is part of the WordPress block editor, so it is already installed on your site. It supports more than 40 platforms, including Facebook, Instagram, X, YouTube, LinkedIn, Pinterest, and GitHub, and each icon is a lightweight inline SVG. That means no extra font files, no JavaScript, and no measurable effect on your page speed.

Because the block is native, it also works with the WordPress customiser and the Site Editor, so your icons can appear in your header, footer, or sidebar and stay consistent on every page. A plugin can do more, but for most sites the block covers everything that matters.

Method 1: Add the Social Icons Block to a Post or Page

How Do I Insert the Block and Pick My Platforms?

  • Click the plus icon where you want the icons to appear, then search for Social Icons and select the block.
  • Click the plus icon inside the block to add your first service, then choose a platform from the list.
  • Click the icon and paste the full URL of your profile, such as https://facebook.com/yourpage.
  • Repeat the process for each platform you want to show, then save or publish the page.

How Do I Style the Icons?

In the block settings sidebar you can change the icon size and choose between three styles: Default, Logos Only, and Pill Shape. The Default style shows each icon inside a coloured circle, Logos Only shows the bare logo, and Pill Shape stretches the icon into a rounded rectangle.

You can also set the icon colour and background colour. For a clean look, match the icon colours to your brand palette and keep them consistent across your header, footer, and contact page. If the built-in options feel limited, our guide to adding custom CSS in WordPress shows how to fine-tune colours further.

Method 2: Place Social Icons Site-Wide With the Site Editor

If you use a block theme, the Site Editor lets you add social icons to your header or footer template parts, so they appear on every page automatically. Go to Appearance, Editor, then open the Header or Footer template part.

Add the Social Icons block inside the template part, fill in your profile links, and save. The icons will now show on every page that uses that template. This is the cleanest method for site-wide icons, because you set the links once and never repeat them on individual pages.

If your theme does not support the Site Editor, the Widgets screen in Method 3 is the classic-theme equivalent.

Method 3: Add Social Icons With the Widgets Screen

Classic themes still use the Widgets screen, and it supports blocks too. Go to Appearance, Widgets, then open the Footer or Sidebar area where you want the icons.

Add a Social Icons block to that widget area, fill in your profile URLs, and save. The icons will appear on every page that shows that widget area. This method works on older themes and needs no code, which makes it a good fit for sites that have not moved to a block theme yet.

One caution: some themes style widget areas with narrow widths, so check the result on a phone. If the icons wrap awkwardly, reduce the icon size or switch to the Logos Only style.

Method 4: Hand-Code Social Icons With SVG and HTML

If you need full control over the markup, or you want an icon for a platform the block does not include, hand-coded SVG links are the answer. Add a Custom HTML block and paste a link for each platform, with an inline SVG inside the link.

<a href="https://facebook.com/yourpage" aria-label="Facebook" class="vtg-social-link">
    <svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
        <!-- Replace this path with the official icon path from the platform brand resources -->
        <path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20z"/>
    </svg>
</a>

Replace the path data inside the SVG with the official icon path from the platform brand resources page, and set the fill colour to match the platform or your own palette. The aria-label attribute is essential here, because an icon-only link has no visible text for screen readers to announce.

Hand-coded icons take more work, but they give you complete control over size, spacing, hover effects, and animation. Keep the code in a reusable block or a template part so you do not have to paste it on every page.

How Should I Size and Colour My Social Icons?

Icon size matters more than most people think. Icons smaller than 24 pixels are hard to tap on a phone, while icons larger than 48 pixels can dominate a header. A size between 32 and 40 pixels works well in most footers, with slightly smaller icons in a compact header.

For colours, use the official brand colour for each platform or a single neutral colour for all icons. A row of brand colours looks lively on a footer, while a single colour looks calmer and more professional in a header. Pick one approach and use it consistently.

Add a simple hover effect so visitors know the icons are clickable. A slight colour change or a gentle fade on hover is enough, and this small CSS snippet softens the icon when the mouse moves over it. Avoid spinning or bouncing animations, which distract from your content and can annoy repeat visitors.

.wp-block-social-links .wp-social-link a:hover {
    opacity: 0.8;
}

How Do I Make Social Icons Accessible?

Every icon-only link needs an accessible name, or screen reader users will hear only link, link, link with no idea where each one goes. The Social Icons block adds an accessible label automatically from the service name, but hand-coded icons need an aria-label on each link, as shown in Method 4.

Also make sure the icons are large enough to tap easily, with enough space between them. Touch targets smaller than 24 pixels are difficult for many people, and cramped icons are easy to tap by mistake on a phone.

Finally, set social links to open in a new tab only when it helps the visitor. Opening in a new tab keeps your site open in the background, but it can confuse some users, so use it deliberately rather than by default. For a related accessibility topic, our WordPress image SEO tips guide covers alt text, which follows the same principle of describing what sighted users can see.

Where Should Social Icons Go on My Site?

Placement matters. The footer is the most common spot, because visitors who scroll to the bottom are often looking for a way to follow you. The header works too, but keep the icons small there so they do not compete with your navigation.

A contact page is another good home for social icons, next to your email address and contact form. Avoid putting large icon rows in the middle of blog posts, where they distract from reading. One clear set of icons in the footer, plus a small set in the header if your design allows it, is enough for most sites. If your hosting setup limits what you can customise, our web hosting guide covers how your hosting choice affects site control.

What Are the Limits of the Built-In Block?

The Social Icons block covers the basics, but it has limits. You cannot upload a custom SVG icon, the styling options are modest, and there is no built-in way to show follower counts or share counts. The block also shows the same icons everywhere it appears, with no per-page control.

A plugin is worth considering if you need any of the following: custom icons for a niche platform, floating share buttons that follow the reader, follower counts next to each icon, or detailed click analytics. Our guide to adding social share buttons without a plugin explains the share side of this problem, which is a different job from profile links. The official documentation at WordPress.org also lists the platforms the Social Icons block supports.

For a simple row of profile links, though, the built-in block is faster, lighter, and easier to maintain than any plugin. Start with the block, and add a plugin only when you hit a limit that actually matters to your site.

Frequently Asked Questions

Can I add social icons in WordPress without a plugin?

Yes. The built-in Social Icons block supports more than 40 platforms and needs no plugin. You can place it in a post, in a widget area, or in your header and footer through the Site Editor.

How do I add social icons to my WordPress header?

In a block theme, open Appearance, Editor, then add the Social Icons block to the Header template part. In a classic theme, add the block to a header widget area if your theme provides one.

Do social icons slow down my website?

The built-in Social Icons block uses lightweight inline SVG icons and adds no extra scripts, so its effect on speed is negligible. Heavy social plugins that load extra fonts and JavaScript can slow a site down, which is another reason to prefer the built-in block.

How do I make social icons accessible?

Give every icon-only link an accessible name. The Social Icons block does this automatically, and hand-coded icons need an aria-label such as Facebook on each link. Keep icons at least 24 pixels across with enough space between them for easy tapping. The developer documentation at developer.wordpress.org covers accessible link names in more detail.

Last updated: November 2026.

Hostinger - Get 20% OFF

Habib ur Rehman

Hello! I'm the founder of VU Tech Geek. As a BSCS graduate and experienced WordPress professional, I'm passionate about technology and education. My Virtual University journey has given me valuable insights and knowledge, which I love to share with fellow students.… More »

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker