ojsde / shariff

The Shariff plugin adds social media buttons to the website without compromising the privacy of website users, using Shariff (https://github.com/heiseonline/shariff) solution.
GNU General Public License v3.0
9 stars 16 forks source link

delete text (tweet, share) next to the icons #6

Closed davidalar closed 3 years ago

davidalar commented 6 years ago

Hi!

1.- I need to delete the text (tweet, share) next to the icons. that is, only the icon is displayed, not the text.

2.- Is it possible to change the text, for example, instead of "share" that appears "spread"? Thanks!

lilients commented 6 years ago

Hi @davidalar , the shariff plugin for OJS uses the shariff solution from heise. In theory all features that are available for the heise tool can be implemented in the OJS plugin. But if you want the buttons to display another language, you only need to change the language of your OJS installation. The OJS plugins reads the chosen language from the OJS GUI and hands it to the plugin.

shariff_it shariff_de

Does that solve your problem?

dennmuel commented 6 years ago

Hello @davidalar ,

I assume you don't want to just change the language, but manipulate the exact wording (or remove textual hints entirely). So maybe a possible solution would be to edit the contents of shariff/shariff.complete.js and/or shariff/shariff.min.js where the respective strings are deposited.

Since I'm not so experienced in coding, my not-so-educated guess is, that these strings look kind of "hard coded". Maybe switching to keys and adding editable locales would be a more elegant solution (--> possible feature request?).

Kind regards Dennis

zuphilip commented 6 years ago

There is a feature request in the upstream Shariff repository for smaller buttons without text: https://github.com/heiseonline/shariff/issues/184 and there is a reference that the Drupal plugin already can do this: https://www.drupal.org/project/shariff