Social Warfare plugin
-
I’ve run into a problem with the Social Warfare plugin as follows:
When I combine all my javascript files Social Warfare doesn’t seem to update the social share counts. When I’ve checked the web inspector in reports the following (I’ve replaced the angle brackets with square brackets):
[script type=”text/javascript”] swpPinIt={“enabled”:false};var swpClickTracking = false; var swp_nonce = “ff96d25db7″;
var swp_buttons_exist = !!document.getElementsByClassName( ‘nc_socialPanel’ );
if ( swp_buttons_exist ) {
swp_admin_ajax = ‘https://chromasia.com/wp/wp-admin/admin-ajax.php’;
swp_post_id=’9064′;
swp_post_url=’https://chromasia.com/buzludzha-2-2017/’;
swp_post_recovery_url = ”;
socialWarfarePlugin.fetchShares();
}
[/script]The line “socialWarfarePlugin.fetchShares();” generates this error: “Can’t find variable: socialWarfarePlugin”
The net result is that Social Warfare doesn’t update the share counts unless I disable JS Combine. I’ve also tried excluding Social Warfare from being combined, along with jquery and pretty much every other script I can find, but as long as JS Combine is enabled the share counts don’t update. As soon as I turn off JS Combine everything goes back to normal.
I’m hoping you can fix this as JS Combine makes a significant improvement to my page speed scores but I just can’t get it to work with Social Warfare.
The page I need help with: [log in to see the link]
The topic ‘Social Warfare plugin’ is closed to new replies.