- This topic has 3 replies, 2 voices, and was last updated 3 years ago by
Tom.
-
AuthorPosts
-
January 11, 2020 at 10:20 am #1129082
Joao
Hi,
I’m using GP and Polylang to create a three language site.
Today I was asked to install “freshdesk widget”. It a live chat code that looks like this:
https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/50000274982/original/zHcDTc826eO0a3jzLw7oOzkchmbigqFOFQ.pngAnd results in something like this: https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/50000274953/original/zMqz4F6PFnQBnBwv6APH-Jr2khSCQ-WrEg.png.
There will be a freshdesk widget for each language.
1st question: Can I use hooks to insert it?
2n: I looked into elements and what I saw was:So I decided to look into source code for NL pages. There’s no trace of elements code in there.
Question (2nd): Elements have a language and I need to duplicate element codes for each language/this is the way to do it? If so, maybe you could add some info about it in GP Documentation…
In the past I have used GOP and WPML. Next I’m going to check my records to find that website and check what’s happening there. (btw: so far my experience with polylang is much much better than the one I remember having with wpml).
January 11, 2020 at 5:12 pm #1129286Tom
Lead DeveloperLead DeveloperHi there,
Yes, you need to duplicate your Element for each language, just like you would a post or page: https://www.screencast.com/t/AqxlkmTfM
Once you do that, your different Elements should display on their chosen language.
If you want an Element to display on all languages, you can check this box in the Display Rules section: https://www.screencast.com/t/ppM10hQd7v
Let me know if this helps or not 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJanuary 12, 2020 at 9:57 am #1129846Joao
Thank you Tom. It’s done and tested and working.
Also inserted freshdesk as a hook element – one for each language.
And I decide to use bottom footer bar widget to place social icons for all languages and a text widget per language containing copyright and privacy and all (had to insert a blank space in customiser footer section but it works ok.
Thanks for your help.
Best.
João
January 12, 2020 at 11:15 am #1129897Tom
Lead DeveloperLead DeveloperYou’re welcome! 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.