Thread Starter
JJNW
(@jjnw)
Okay, I removed from showing my tags, so it wouldn’t grab them, but now modal on click doesn’t work. I get an error in webpage:
Uncaught TypeError: postLink is undefined
initModal http://localhost:81/zzz/yyy/xxx/public/js/wp-post-modal-public.js:229
jQuery 2
dispatch
handle
Which is this code:
var postSlug =
postLink.lastIndexOf("/#") > -1
? basename(postLink.substring(0, postLink.lastIndexOf("/#"))) +
basename(postLink)
: basename(postLink);
So what are my options?
Thanks!
-
This reply was modified 4 years, 4 months ago by
JJNW.
Thread Starter
JJNW
(@jjnw)
YAY ! Fix it !
I had to comment out lines 228 through 237 in wp-post-modal-public.js
/* var postSlug =
postLink.lastIndexOf("/#") > -1
? basename(postLink.substring(0, postLink.lastIndexOf("/#"))) +
basename(postLink)
: basename(postLink);
var postAnchor =
postSlug.lastIndexOf("#") !== -1
? postSlug.substring(postSlug.lastIndexOf("#"))
: false;
*/
Woot woot!!!