Hi,
I’m using ConvertKit to capture email addresses on my website. I’ve been working with their engineering support on a problem I’m having getting the form to work when accessed by mobile. (It works when accessed via desktop).
They investigated and found:
-
“The problem is that theme you are using (X-Child) has a script defined that hijacks touch which is meant to show a modal.”
-
They can do a temporary fix, but “Keep in mind though that as soon as automatic update of the website will happen this will be overwritten and you will have to do it again.”
They suggested I contact X-Theme support and reference the following code:
“here is a bit of code that is causing troubles (so you may forward it to them for reference)”:
t(‘a[href*="#"]’).on(“touchend click”, function(i) {
if (href = t(this).attr(“href”),
notComments = href.indexOf("#comments") === -1,
“#” !== href && notComments) {
var n = href.split("#").pop()
, s = t("#" + n);
if (s.length > 0) {
if (i.preventDefault(),
a)
return;
e(s, 850, “easeInOutExpo”)
}
}
})
Over 50% of my traffic accesses the website via mobile, so this is really affecting capturing leads.
Thanks in advance for your assistance.
Marcy Travis
MarcyTravis.com

