Jetpack Likes causing jQuery error
-
I want to enable the Likes on my posts using jetpack. However, whenever, I try to enable the Likes module I always get the following “Uncaught SyntaxError: Unexpected token ILLEGAL” JavaScript error in following line:
jQuery.each( event.likers, function( i, liker ) { $list.append( '<li class="' + liker.css_class + '"><a href="'%20+%20liker.profile_URL%20+%20'" class="wpl-liker" rel="nofollow" target="_parent"><img src="'%20+%20liker.avatar_URL%20+%20'" alt="' + liker.name + '" width="30" height="30" style="padding-right: 3px;" /></a></li>'); Uncaught SyntaxError: Unexpected token ILLEGAL } );
Initially I though it was because I was using jquery 1.7.2, but then I switched to the default comes with WordPress (1.8.3) and still the issue exists. Then I tried switching to the default WordPress theme (Twenty Twelve) and still the issue exists.
My site is https://techtalk.virendrachandak.com/.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Jetpack Likes causing jQuery error’ is closed to new replies.