aitolnews aitolnews
asked 10 years ago
1 Answers
DominicStaff
answered 10 years ago

To resolve this issue please follow my instruction here:
1. Open functions.php file in /wp-content/themes/dw-focus/functions.php 2. Replace following code from line 412 to line 417 

$twitter_count = dw_get_twitter_count( $url );
// //Twitter
// $twitter_count = dw_get_twitter_count( $url );
$facebook_count = dw_get_facebook_count( $url );
$linkedin_count = dw_get_linkedin_count( $url );
$gplus_count = dw_get_plusones_share_count( $url );

with:

$twitter_count = dw_get_twitter_count( get_permalink() );
$facebook_count = dw_get_facebook_count( $url );
$linkedin_count = dw_get_linkedin_count( get_permalink() );
$gplus_count = dw_get_plusones_share_count( get_permalink() );

3. Replace following code from line 1104 to line 1105

// if( isset($json['result']) )
return intval( $json['result']['metadata']['globalCounts']['count'] );

with:

return intval( $json['result']['metadata']['globalCounts']['count'] );
aitolnews aitolnews
replied 10 years ago

No, it does not work. I did it but nothing changes, the problem with fb remains

Dominic Staff
replied 10 years ago

We have released version 1.0.8 of the DW Focus. you can download the latest version in your profile.
After updating. If you still face there issue, you can send me username & password of your site (via private answer) for further checking.

Powered by DW Question & Answer Pro