Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chestel

    (@chestel)

    Hi whiletrue,

    I’m sure you’ll come up with something more elegant.

    For the time being, I putting an override where the value of really_simple_share_disable is ignored if the really_simple_share was called with the shortcode.

    So I can disable the auto insertion for pages where there are collisions but still insert really_simple_share manually with the shortcode.

    // IF THE "DISABLE" CUSTOM FIELD IS FOUND, BLOCK EXECUTION
    	// unless the shortcode was used in which case assume the disable
    	// should be overridden, allowing us to disable general settings for a page
    	// but insert buttons in a particular content area
    	$custom_field_disable = get_post_custom_values('really_simple_share_disable');
    	if ($custom_field_disable[0]=='yes' and $filter!='shortcode') {
    		return $content;
    	}
    Thread Starter chestel

    (@chestel)

    Wow – thanks for the speedy update.

    really_simple_share_disable works well with pages where a second page sample or excerpt is embedded, as the parent page can just have this added.

    Where a page has more than one content area (e.g. using Secondary HTML plugin) really_simple_share_disable applies to both areas, making the button’s appearance all or nothing. I’ll look for a way to target this.

Viewing 2 replies - 1 through 2 (of 2 total)