• Resolved Kriis

    (@kriis)


    I am trying to add BigOven to the list of the share buttons but my attempts at following the FAQs have met with less than stellar success. The info the BigOven is here:
    https://www.bigovenrecipeplugin.com/

    Any help would be appreciated.

    P.S. You have Yummly, BigOven may be a good addition to the plugin ??

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    PHP code snippet to add to your your theme’s functions.php file (or to a plugin that handles your custom functionality):

    function addtoany_add_services( $services ) {
    	$services['bigoven'] = array(
    		'name'		  => 'BigOven',
    		'icon_url'	  => 'https://www.bigoven.com/assets/images/heart-recipe.svg',
    		'icon_width'  => 32,
    		'icon_height' => 32,
    		'href'		  => 'javascript:(function(d)%7Bvar%20e%3Dd.createElement(%22script%22)%3Be.setAttribute(%22type%22%2C%22text%2Fjavascript%22)%3Be.setAttribute(%22charset%22%2C%22UTF-8%22)%3Be.setAttribute(%22src%22%2C%22https%3A%2F%2Fwww.bigoven.com%2Fassets%2Fnoexpire%2Fjs%2Fgetrecipe.js%3Fr%3D%22%2BMath.random()*99999999)%3Bd.body.appendChild(e)%3B%7D)(document)%3B',
    		'target'	  => '_top',
    	);
    	
    	return $services;
    }
    
    add_filter( 'A2A_SHARE_SAVE_services', 'addtoany_add_services', 10, 1 );

    This makes BigOven available as a custom standalone share button in AddToAny.

    Thread Starter Kriis

    (@kriis)

    I don’t know what I did wrong but that worked like a charm. Thanks muchly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add BigOven’ is closed to new replies.