Set Campaign Thumbnail Size

/** * If you want all campaign thumbnails to have the same size, you can use the * snippet below. Note that images will be hard-cropped, so part of the image * may be cropped out. * * If you…Continue reading

Customize Amount Raised Text

/** * In this example, we change how the “X donated of Y goal” text appears. * * @param string $summary The summary. * @param Charitable_Campaign $campaign This campaign object. * @param float $amount The amount donated. * @param int…Continue reading

Add Read More Link

/** * Add a Read More link to the campaigns in the campaign grid. * * Note: This is designed to be used for cases where you want a Read More link * as well as a Donate button. If…Continue reading

Add Custom Field

/** * Display the custom field. * * @param Charitable_Campaign $campaign * @return void */ function ed_charitable_add_custom_field_to_campaign_grid( $campaign ) { echo $campaign->get( ‘my_custom_field’ ); } /** * You can adjust where the custom field is inserted by changing the priority,…Continue reading

Remove Campaign Description

/** * Remove the campaign descriptions from the campaign loop. */ function en_remove_campaign_description_in_loop() { remove_action( ‘charitable_campaign_content_loop_after’, ‘charitable_template_campaign_description’, 4 ); } add_action( ‘after_setup_theme’, ‘en_remove_campaign_description_in_loop’, 11 );Continue reading