Alib baba
asked 10 years ago

Hi,
A error has come up with sharing in facebook. The open graph image is not shown and with the description is says Page not found and it does not show a image.. The strange thing is that the posts from 2 days ago are working fine. Only from like 1 day ago and the posts that we want to post now.  Could you help us out . This is the website

Otherwise we want to replace the sharing function, we already had a few issues. Like the counter is not working correctly. It there a way to change the sharing function or shut if off?

Mirek Kroupa
replied 10 years ago

I lost count of Google+. But I have already resigned. Facebook does not load images …
http://www.4koridor.cz

1 Answers
Wilfred
answered 10 years ago

To turn off the Share function for an article, please open the file functions.php in the folder path: your site > wp-content > themes > your theme > functions.php
Replace the code from line 420 – 432 with the following code:

<!-- <div class="social-action" data-nonce="<?php echo wp_create_nonce( '_dw_sharing_count_nonce' ) ?>">
<span class="title-action"><?php _e('Sharing','dw_focus') ?></span>
<ul>
<li id="twitter-share" class="twitter" data-post-id="<?php echo $post_id ?>" data-nonce="<?php echo wp_create_nonce( '_dw_focus_single_tweet_count_nonce' ); ?>"><i class="icon-twitter"></i><a href="https://twitter.com/intent/tweet?url=<?php echo $url; ?>&amp;text=<?php echo $title; ?>"><?php _e('Twitter','dw_focus') ?></a><span class="digit digit-twitter"><?php echo $twitter_count; ?></span></li>
<li class="facebook"><i class="icon-facebook-sign"></i><a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $url; ?>&amp;t=<?php echo $title; ?>" ><?php _e('Facebook','dw_focus') ?></a><span class="digit digit-facebook"><?php echo $facebook_count ?></span></li>
<li class="google"><i class="icon-google-plus-sign"></i><a href="https://plus.google.com/share?url=<?php echo $url; ?>" ><?php _e('Google +','dw_focus') ?></a><span><?php echo $gplus_count; ?></span></li>
<li class="linkedin"><i class="icon-linkedin-sign"></i><a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo $url ?>&amp;title=<?php echo $title ?>&amp;summary=<?php echo rawurlencode( get_the_excerpt() ); ?>"><?php _e('Linkedin','dw_focus') ?></a><span class="digit digit-linkedin"><?php echo $linkedin_count ?></span></li>
<li class="email"><i class="icon-envelope-alt"></i><a href="mailto:?Subject=<?php echo $title; ?>&amp;body=<?php echo $url; ?>"><?php _e('Email this article', 'dw_focus' ); ?></a></li>
<?php if( ! is_handheld() ) { ?>
<li class="print"><i class="icon-print"></i><a href="#" onclick="window.print();"><?php _e('Print this article','dw_focus'); ?></a></li>
<?php } ?>
</ul>
</div> -->

You can use one of these plugins to replace the share function:
http://wp.smashingmagazine.com/2012/02/22/25-social-media-plugins-wordpress/
Hope this helps!

Powered by DW Question & Answer Pro