Methods for Adding Social Icons to Your WordPress Site

This tutorial walks you through step by step the methods for Adding Social Icons to Your Wordpress site!

This tutorial will explore adding social media icons to your WordPress site. Most people by now have at least some form of social media, and utilise it for anything from product recommendations to communication and advertising.

Therefore it’s very clear why it’s so important to have social media pages for your business or project. As such it’s useful to display links to these pages on your website whether to drive traffic to those pages to display your social media or content or simply as an additional method of communication with your target audience.

There are a number of different ways to add and format social media links within your website each of which will depend on why you’re adding them and your current site setup below we’ve explored some of those:

Option 1:

Using a font library such as Font Awesome (https://fontawesome.com). In many cases this is one of the best approaches you can take. Font libraries will often include the option to add icons as part of a font, as an SVG or in multiple formats other than a static image. This will in many cases help them to load faster.

A font library such as this can often be added via a CDN and a snippet of code added to your WordPress theme. However many font libraries such as Font Awesome have plugins available within WordPress which enable the use of the library without the need for code.

You may also find that your theme already utilises Font Awesome and similar icon kits within the code so it’s worth checking any documentation available there as you may then be able to simply use the icons straight away.

To add the icons to your site once you’ve installed the necessary plugins or determined that your theme has the plugin library pre-installed.

You can generally use HTML codes, Unicode or the SVG relating to that icon. In the case of font awesome you’re provided with all of those options.

Whichever format you decide to utilise displaying the icons will then depend on where on your website you’d like them and how your website is built we’ve detailed a few options below:

Displaying your icons:

1. Adding the icons via a Widget – If you have widget locations such as the footer of your website for example or a header bar you can add the icons here by simply using the HTML widget to add the HTML codes or the Text editor to add the icons as SVG images by uploading media.

If you’re using a plugin to add the Icons to your site they may include a pre-built widget making it even easier to add the images simply use the widget to select the icons you’d like to add and save them to the widget section you’d like to display them in.

2. Adding icons to a social media menu – To do this simply head over to menus within your site and click to add a new menu. Here you can label the menu something like ‘social media menu’ so that it’s easier to identify.

Then click to add a custom link, your description will be the I class code and the link will be the relevant link to your social media page. Once you’ve created this menu you’ll need to output it within the site. You can do this by adding a menu widget, or by adding the php code to display a menu within your theme.

3. Adding icons directly via HTML to a page – You can also add icons directly to a page using the built in WordPress editor to do this simply add your HTML to a text box and the icons will display within the page. You may need to wrap the icon classes in div classes and style those specific div classes using CSS if you’d like to considerably adjust the style of the icons on the page.

Option 2:

Using the Guteberg built-in social icons widget, this is another great option for easily adding social follow icons to your site. As of WordPress 5.4 a social media icons widget is available within the Widgets section of your WordPress site and Gutenberg.

It provides a number of great icons for most popular social media sites in a modern style. This is a great way to avoid adding an extra plugin to your site or having to heavily customise the icons.

Option 3:

Using social media icon plugins, there are a tonne of great plugins available within WordPress in multiple different styles. This allows you to find something great that matches your site design. It’s important to be sure that the plugins are kept up to date and that the ratings are good but there are many top very commonly used plugins that can be added to your site.

Many plugins will include an editor tab allowing you to add the icons in Gutenberg or the original WordPress editor. They are also likely to provide the option to add the icons to each page of your site through the use of a shortcode.

Option 4:

Using the themes in-built social media tools. In many cases if you have a WordPress theme purchased via a theme marketplace it may have social media elements already built into the site.

This will vary from theme to theme, some may be found in the settings others as a widget.

Further reading:

How to install plugins with WordPress

This is a quick tutorial on adding social media icons to your WordPress site.

We’d appreciate a share or any comments if you found this useful, thanks!

Tech Typed
Tech Typed
Articles: 186

Leave a Reply

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