Jump to content


Better, More Convenient, Private Support for Your iThemes Products Is Here.


We're moving support away from the forum and in to private tickets - Log In to Get Support Here


Note: any currently open support threads in the community forum will stay open while we resolve them.

Replying to Remove Social Shares.


Post Options

  or Cancel


Topic Summary

cjdeboer

Posted 04 June 2014 - 05:01 PM

That did the trick...thanks very much!

Ronald

Posted 04 June 2014 - 03:39 PM

Hi,

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');

Ronald

cjdeboer

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.

http://thegiftofwriting.com/product/journaling-creative-growth/

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

Review the complete topic (launches new window)

Better, More Convenient, Private Support for Your iThemes Products Is Here.


We're moving support away from the forum and in to private tickets - Log In to Get Support Here


Note: any currently open support threads in the community forum will stay open while we resolve them.