Social icons not appearing on your website can be caused by several factors, from missing CSS files to theme conflicts. This guide covers the most common causes and their solutions.
Check if Social Icons Block is Active
The Social Icons block might be disabled in your DigiBlocks settings. Navigate to DigiBlocks > Dashboard in your WordPress admin and verify that the Social Icons block is enabled in the Block Manager. If the toggle is off, enable it and save the changes.
Verify Block Configuration
Ensure your Social Icons block is properly configured with valid social media URLs. Edit the page containing the social icons and check that:
- Each social icon has a valid URL (starting with http:// or https://)
- The icon type matches the social platform you’re linking to
- The block isn’t accidentally hidden or has zero opacity
CSS Files Not Loading
DigiBlocks generates individual CSS files for each post containing blocks. If these files are missing or corrupted, your social icons won’t display properly.
Navigate to DigiBlocks > Settings and click the Regenerate All Assets button. This will recreate all CSS and JavaScript files for your pages. After regeneration, clear any caching plugins and check if the social icons appear.
Font Awesome Icons Missing
Social icons in DigiBlocks use Font Awesome icons. If these aren’t loading, the icons will appear as empty spaces or squares.
Check your browser’s developer console (F12) for any 404 errors related to font files. If you see missing font files, try switching between local and CDN font loading in DigiBlocks > Settings under the Google Fonts Settings section.
Cache and Optimization Plugin Issues
Caching plugins or optimization tools might be interfering with the social icons’ CSS or JavaScript files.
Clear all caches from your caching plugin, CDN service, and browser. If you’re using optimization plugins that combine or minify CSS/JS files, try temporarily disabling these features to see if the social icons reappear.
File Permissions and Directory Issues
The DigiBlocks assets directory might have incorrect permissions, preventing CSS files from being created or accessed.
Check that the /wp-content/uploads/digiblocks/
directory exists and has proper write permissions (755 for directories, 644 for files). If the directory doesn’t exist, create it manually or regenerate assets through the DigiBlocks settings.
Missing Block Assets
Individual posts might be missing their generated asset files, causing social icons to appear unstyled.
Go to /wp-content/uploads/digiblocks/
and check if there’s a CSS file named digiblocks-{post-id}.css
for the page where social icons aren’t working. If missing, edit and update the page to regenerate the assets, or use the bulk regeneration feature in settings.
Browser-Specific Display Issues
Some browsers might not display the social icons due to ad blockers or privacy extensions that block social media content.
Test your page in different browsers and in incognito/private mode. If icons appear in some browsers but not others, the issue might be browser extensions or settings rather than your website.
Icon Size and Visibility Settings
The social icons might be present but too small to see or have colors that blend with the background.
In the block editor, select your Social Icons block and check the styling options:
- Increase the icon size in the block settings
- Change the icon color to contrast with your background
- Adjust spacing and alignment settings
- Ensure the block doesn’t have zero width or height
WordPress Version Compatibility
Older WordPress versions might not fully support the block editor features used by DigiBlocks.
Ensure you’re running WordPress 5.8 or higher, as this is the minimum requirement for DigiBlocks. If you’re on an older version, update WordPress before troubleshooting further.
Testing with Default Theme
Theme conflicts are common causes of display issues. Switch to a default WordPress theme like Twenty Twenty-Four temporarily to see if the social icons appear correctly.
If icons work with the default theme but not your custom theme, the issue is theme-related. Contact your theme developer or add the CSS override code mentioned earlier to resolve styling conflicts.