arrow right icon

Social sharing icons are not displayed in wordpress page ?
Reading Time: < 1

Social sharing icons are not displayed in wordpress page  ?

One of the reasons could be that your plug-in’s css file is not loaded by header.php

When we build custom themes we edit header.php to include new css, scripts …etc.

In our case the header.php was rewritten from scratch, so the wp_head() php function added by wordpress in header.php template was removed.

I installed AddToAny plug-in and when I tried to get the social sharing icons by adding

LinkedInFacebookWhatsApp
short code, the icons didn’t show up.

I felt that something is likely preventing the icons from displaying. When I added wp_head() php function in the header.php file the AddToAny plugin css was loaded and the icons are displayed on the screen.

Here especially when you use plugins, using this wp_head() php function will insert crucial elements ( Eg: scripts, styles.. etc ) of the plug-in in your document.

Always put wp_head() php function just before the closing tag of your theme (usually in header.php)

Also some plugins add their js files in footer, so its safe to add wp_footer() before closing body tag.

Share
LinkedInFacebookWhatsApp

Recent Articles

Staying Ahead in the Digital Era: The Significance of Responsive...
- Bala
30 Jun, 2017
Staying Ahead in the Digital Era: The Significance of Responsive Design in Digital Transformation
Engineering for Accessibility: Designing Inclusive UX/UI Experiences
- Manisha
30 Jun, 2017
Engineering for Accessibility: Designing Inclusive UX/UI Experiences
UX/UI Testing Automation: Streamlining Development Processes for Efficient Design Iterations
- Sristee
30 Jun, 2017
UX/UI Testing Automation: Streamlining Development Processes for Efficient Design Iterations