Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Disable result link (click action) › Reply To: Disable result link (click action)
January 14, 2025 at 7:44 pm
#52490
Participant
It’s very close. The URLs look correct on hover now, but they still have the click event over the result that prevents the links from working.
function(t) {
if (!i.dragging) {
let s = e(this).find(“.asp_content a.asp_res_url”),
l = s.attr(“href”);
l !== “” && (t.preventDefault(), t.which === 2 || s.attr(“target”) === “_blank” ? c.openInNewTab(l) : location.href = l)
}
}
—-
I updated the link with ‘get_permalink($r->id);’, and still have the first function code added to the theme.