Hello klawzeus,
Thank you for using Simple Side Tab. This is the first time I’ve seen the tab used like this and I think it is pretty cool.
The link disappears because the URL value is passed through esc_url() to sanitize the URL. The protocol “tel” is approved but “sms” is not.
https://codex.wordpress.org/Function_Reference/esc_url
I ran a test on another site to see if I could get it to work. I used an array to pass the accepted protocols to the function and it worked. Here is what I did for my test.
In the plugin folder, I opened the simple_side_tab.php file and added the array to the three locations where the esc_url() function is called.
Search: esc_url( $rum_sst_tab_url )
Replace: esc_url( $rum_sst_tab_url, array( ‘http’, ‘https’, ‘tel’, ‘sms’ ) )
I don’t suggest doing this because the next time the plugin is updated, it will wipe out these changes. I will consider adding a filter so the protocol can be modified easily.
I have not considered using this for SMS but it is a really cool idea.
Are you using this plugin on more than one site where you would use the SMS protocol?
Indeed. I love the tab and its appearance. I would use it on every site I build.
WPFront Notification Bar (plugin) lets me click to text, but I prefer that to be a “call now” button.
Text is used way more in the industries I help.
Thanks so much for the explanation. I’ll certainly wait until an update comes out. For now, I just run WPFront and SST together, and make due.
Thank you for the feedback. I like the idea of adding SMS to the approved protocols so I will make sure it is in the next release.
Cheers!