Hi,
Please can someone help me with this error :
I am using the sociallocker (https://codecanyon.net/item/social-locker-for-wordpress/3667715 ) website and I’m getting this error message :
Uncaught TypeError: $(…).sociallocker is not a function
https://i.imgur.com/N4abR7s.png
here is the code :
page_js = "
jQuery(function () {
‘use strict’;
blog.ItemDetails($);
jQuery(document).ready(function ($) {
$('#dst-social-lock').sociallocker({
url: '".get_the_permalink($product->id)."?utm_source=ShareButton',
theme: 'flat',
facebook:{
appId: '".get_option('dst-facebook-api')."',
},
twitter: {
tweet: {
text: 'Free download ".$product->title." by ".$user->userName." on @blog #blog'
}
},
text: {
message: 'Share and download this product free.'
},
buttons:{
order: ['facebook-share','twitter-tweet','linkedin-share'],
counters: false,
lazy: true,
localStorage: false,
console: false
}
});
});
});
";
wp_add_inline_script(‘dst-script’, $page_js);
Thanks in advance