Jump to content

Replying to Remove Social Shares.

Post Options

  or Cancel

Topic Summary


Posted 04 June 2014 - 05:01 PM

That did the trick...thanks very much!


Posted 04 June 2014 - 03:39 PM


based on: http://www.eugenoprea.com/code-snippets/exclude-diggdigg-from-specific-pages/

Can you try adding the following code at the end of your child themes functions.php file (but before the closing ?>, if any)

// Exclude DiggDigg from specific pages
function my_exclude_digg_digg() {
	if ( it_exchange_is_page( 'product' ) ) {
		remove_filter('the_excerpt', 'dd_hook_wp_content');
		remove_filter('the_content', 'dd_hook_wp_content');
add_action('template_redirect', 'my_exclude_digg_digg');



Posted 04 June 2014 - 02:16 PM

My client uses Digg Digg for social share counts on her site.  By using Worpress pages for Exchange, I was able to place code on the page to disable the plugin on those user-defined Exchange pages.  The only exception is the Product pages, which is Exchange-only.  Example is below.


Is there a way to disable the plugin on the product pages as well?

Review the complete topic (launches new window)