I have four languages on my website managed using WPML. I need to implement social sharing on my website. I need to share custom text ( different for each language) using this social share. The current page URL along with the custom text is needed to be shared. Any plugin which serves for this purpose or implementing programmatically could help.
Asked
Active
Viewed 193 times
1 Answers
0
You can use WPML string translations to display any text that is translatable. String translation is a tool that will allow you to translate strings in each language based on the language locale the visitor is at. From AddThis.com, you can get buttons without any text. So a string implemented in your PHP file, and then buttons without any text would do the job. You will need to add string in the base language in your php file and then translate that it in the tool itself.

Sandy J
- 54
- 3
-
I need to share the text to fb, twitter, etc. ICL_LANGUAGE_CODE can be used for choosing the current language. But my question is how could I share the text to social media. – Priyanka Sep 27 '19 at 11:09
-
Ohh, In that case, you can use Yoast plugin and it goes well with WPML :) – Sandy J Sep 29 '19 at 17:31
-
Ohh, In that case, you can use Yoast plugin and it goes well with WPML :) – Sandy J Sep 29 '19 at 17:31
-
IN YOAST where I could find options to add custom text for social sharing. I need to share in FB, twitter, Whatsapp and linkedin. – Priyanka Sep 30 '19 at 07:58