How to Fix Broken or Missing Social Media Icons in WordPress
Content
Missing or broken social media icons are a common frustration for WordPress users. Whether you're trying to add a platform not included by default, like Nextdoor or Alignable, or your custom icons aren't displaying correctly, this guide will walk you through the most effective troubleshooting steps and solutions.
Why This Happens
Social icon issues typically stem from a few key areas:
- Theme or Plugin Limitations: Your theme's built-in social links menu or a specific plugin may only support a predefined set of popular platforms.
- Incorrect Implementation: Manually adding icon code can lead to broken images if the file path is wrong or the code is placed in the wrong part of your theme.
- Cache or CDN Issues: Sometimes, a recently added or changed icon may not appear immediately due to your site or browser caching the old version.
Common Solutions
1. Use the Built-in Social Icons Block
The block editor includes a dedicated Social Icons block. To use it:
- Edit a page or post.
- Add a new block and search for "Social Icons."
- Add your social profile URLs. WordPress will automatically display the corresponding official icon for many major platforms.
Limitation: This block does not allow for custom icon uploads. If your platform isn't in the predefined list, the block will show a generic placeholder icon (-).
2. Add Custom Icons as Images
For full control, you can add any social icon as an image:
- Create or download the icon you want to use in a web-friendly format (e.g., SVG, PNG).
- In the block editor, add an Image block.
- Upload your custom icon.
- Link the image to your social media profile URL.
- Repeat and arrange multiple Image blocks in a Row or Group block to create a cohesive set of icons.
3. Check Your Theme's Social Menu
Many themes, like Twenty Seventeen, include a dedicated social link menu location.
- Navigate to Appearance > Menus in your WordPress dashboard.
- Create a new menu or edit an existing one.
- Add your social media links using the "Custom Links" section.
- Look for a checkbox labeled something like "Social Links Menu" at the bottom of the menu settings and enable it.
- Save the menu. Your theme should now display these links with appropriate icons.
4. Troubleshoot Broken Custom Code
If you've hand-coded your icons and they appear broken:
- Verify Image Paths: Ensure the
srcattribute in your<img>tag points to the correct location of your uploaded image file. Using the full URL from the Media Library is often the most reliable method. - Use a Code Block: When adding HTML to the block editor, always use the dedicated "Custom HTML" or "Code" block. Pasting code into a standard paragraph block can cause it to break.
- Clear Your Cache: Clear any caching plugins you have installed and your browser cache to see if the icon appears.
When to Seek Further Help
Since icon display is heavily dependent on your specific theme, you may need to consult your theme's documentation or support forum for precise instructions. If you are using a dedicated plugin for social icons, its support forum is the best place to ask questions about adding custom networks.
By methodically working through these options, you should be able to successfully add and display any social media icon on your WordPress site.
Related Support Threads Support
-
Customize social links icon footerhttps://wordpress.org/support/topic/customize-social-links-icon-footer/
-
Socials opening up in new tabhttps://wordpress.org/support/topic/socials-opening-up-in-new-tab/
-
Google Font won’t loadhttps://wordpress.org/support/topic/google-font-wont-load/
-
Adding google ads code betweenhttps://wordpress.org/support/topic/adding-google-ads-code-between/
-
Recommendation for Learning to Fix Items Flagged by Lighthousehttps://wordpress.org/support/topic/recommendation-for-learning-to-fix-items-flagged-by-lighthouse/
-
Generating a web page from API requested htmlhttps://wordpress.org/support/topic/generating-a-web-page-from-api-requested-html/
-
wordpress embed an instagram feed heart iconhttps://wordpress.org/support/topic/wordpress-embed-an-instagram-feed-heart-icon/
-
Insert code to pagehttps://wordpress.org/support/topic/insert-code-to-page/
-
Broken filehttps://wordpress.org/support/topic/broken-file-2/
-
Page Jumps and Anchor Linkshttps://wordpress.org/support/topic/page-jumps-and-anchor-links/
-
replace ‘pipe’ char on login page linkshttps://wordpress.org/support/topic/replace-pipe-char-on-login-page-links/
-
creating multiple links in a line such as 1,2,3,4 etchttps://wordpress.org/support/topic/creating-multiple-links-in-a-line-such-as-1234-etc/
-
Adding social media icons not available Social Icons Featurehttps://wordpress.org/support/topic/adding-social-media-icons-not-available-social-icons-feature/
-
Adding Clippy to the websitehttps://wordpress.org/support/topic/adding-clippy-to-the-website/
-
Applying cover color to the section instead of just blockhttps://wordpress.org/support/topic/applying-cover-color-to-the-section-instead-of-just-block/
-
Link from opt in page to confirmation pagehttps://wordpress.org/support/topic/link-from-opt-in-page-to-confirmation-page/
-
Links readability for SEOhttps://wordpress.org/support/topic/links-readability-for-seo/
-
Work-around to admin to add an Image in a Commenthttps://wordpress.org/support/topic/work-around-to-admin-to-add-an-image-in-a-comment/
-
How to Link Site to Facebookhttps://wordpress.org/support/topic/how-to-link-site-to-facebook/
-
Image Help Requesthttps://wordpress.org/support/topic/image-help-request/
-
Change WP favicon. How?https://wordpress.org/support/topic/change-wp-favicon-how/
-
Video Thumbnail Sizehttps://wordpress.org/support/topic/video-thumbnail-size/
-
Subscribe Buttonhttps://wordpress.org/support/topic/subscribe-button-27/
-
Additional guide to using the Site Editorhttps://wordpress.org/support/topic/additional-guide-to-using-the-site-editor/
-
Contact Form on Webpage – Placing as Part of Page an Option?https://wordpress.org/support/topic/contact-form-on-webpage-placing-as-part-of-page-an-option/