Hey @wp-henne – thank you a lot for your message!
I assume you use the [eeb_mailto] shortcode for it, correct?
We already do offer protection for only text (without any link formatting and so on).
Here’s one solution for each out your use-cases:
Protection of phone numbers WITH converting them to a link:
[eeb_mailto email="12345689" extra_attrs="target='_blank'" method="rot13" display="12345689"]
Protection WITHOUT any link:
[eeb_protect_content protection_text="Please activate javascript to see the email." method="rot13"]12345689[/eeb_protect_content]
The second version protects any content you put in between the start and closing tag. 🙂
Hope this helps so far.
If you have further questions, please let me know.
-
This reply was modified 6 years, 1 month ago by
Ironikus.
Hello @ironikus,
many thanks for your fast response!
I had used the email encoder at the config page at wordpress backend. And didn’t see before the shortcode info at the very low bottomline.
Your shortcode:
The second shortcode works perfectly like expected if i’m using only phone for desktop! Great!
But the first do not fit for using with the phone-option at celular device.
Because i need something like
[eeb_mailto email="tel:+3213442345678" extra_attrs="target='_blank'" method="rot13" display="134 42 345 678"]
But if i’m clicking this, it will open the mailclient.
This is the html-code to use click and call at celular-device:
<a href="tel:+3213442345678">134 42 345 678</a>
I think, there is something more to do to use your plugin. The only solution at the moment is to use the html-encoding.
<a href="tel:" class="mailto-link">134 423 45 678</a>
https://pastebin.com/whWd1xa8
Note the change from mailto: to tel:
This works!
Thank you
-
This reply was modified 6 years, 1 month ago by
WP-Henne.
HEy @wp-henne – thank you for your feedback.
You have been totally right – it changes the link to mailto:
To get rid of that, you can also include the whole HTML into the content shortcode as follows:
[eeb_protect_content protection_text="Please activate javascript to see the email." method="rot13"]<a href="tel:12345689" target="_blank" class="mailto-link">12345689</a>[/eeb_protect_content]
This way it also works with the Javascript setup. 🙂
YEAH @ironikus, this rocks!
Many thanks!
What a great plugin ever!
It’s my pleasure! 🙂 Happy to hear you like it!