it seems while TEL:// works, I would like to have a SMS:// URL work in my Shopify header menu. I purchased an 888 toll free number for text messaging support (using services like SimpleTexting, etc.) since I’m running this business solo, and answer queries through text messages much more easily.
Is there a way to edit code to “allow” SMS:// url format to be allowed in the header menu? I’m comfortable with editing code, and have theme code backups already.
@CaelanB – there’s no way to get this inserted in the dashbard, if Shopify doesn’t modify the filters.
However, in your theme you can manipulate a “placeholder” link to become your sms link; either through JS or – which I would prefer – using the replace-filter, where the link-list gets rendered. If you use the link with the tel://-protocol (and you don’t use any other tel://-links), then something like this would work in your liquid code:
{% for link in linklists.header-sidebar.links %}
{{ link.title }}
{% endfor %}
Correct, at this time (2 years?) I have no intention of using the number for telephone calls; calling it will hang up after a message anyway. I would like to try this; your help is quite appreciated.
I’m getting a result for “linklist” but not “linklists” specifically, but the immediate code after that appears to be theme stuff related to the blocks of the footer. And below that, I saw some header-sidebar stuff too:
This is a premium theme, so there’s a lot of extra stuff like .megamenu, I notice. It’s my first time diving into this file, but here’s the most relevant stuff I’ve found. Should I snippet more for you?
Alright – I added the tel:-link myself, so I could actually test the code. That means, that the SMS-link is in your nav twice now – the first leads to the contact page, the second is the tel/sms-link now. It’ll also show on your prod theme, as the navigation is a shared asset!
That being said – in the dev-theme I created, tel links in the secondary menu will be converted to sms-links both on desktop and mobile:
Yes it does, I see it now, and just tested it after I woke up here (11:04 AM over here in east USA). You’ve been wonderful! I’ll send you one more message, and I appreciate the help. Coding is definitely not my forte.
Hey there, I’m facing same issue with sense/Dawn themes. I tried using the replace filter at the header.liquid file but it didn’t workd, any idea where the links file is or how to solve this on these themes?
Also is there a different between ‘tel:’ to ‘tel//:’ I’m asking because i do use on my website the ‘tel:’ URL, and if this are the same is there a way to replace a different URL so i can have ‘SMS:’ and ‘tel:’ working on my site?