Hello
I added google add on a french website.
Where to modify label, to translate it in french ?
Nothing in params…
Many thanks
Hello
I added google add on a french website.
Where to modify label, to translate it in french ?
Nothing in params…
Many thanks
There are quite some pull requests pending for that plugin, this is one of them:
https://github.com/discourse/discourse-adplugin/pull/51/files
It’s hard coded in.
https://github.com/discourse/discourse-adplugin/blob/master/assets/javascripts/discourse/templates/components/google-adsense.hbs
I guess it would be easy enough to have that be translatable. However, AFAIK, the terms are fairly explicit about what can be used as label text when a label is used.
https://support.google.com/adsense/answer/4533986?hl=en
Publishers have two options for how to label AdSense ad units: You can either label the units with “Advertisements” or “Sponsored Links”. No other variations are allowed at this time.
CSS temporary hack:
.discourse-adplugin .google-adsense-label>h2 {
font-size: 0;
}
.discourse-adplugin .google-adsense-label>h2:after {
content: "Foo bar"; // <--- change to whatever word you want to use instead of ADVERTISEMENT
font-size: 12px;
}
Before:
After:
Might not cover everything.