Home / Admin / Adding Text/Currency To Progress Bar On Campaign Pages
Duplicate Snippet

Embed Snippet on Your Site

Adding Text/Currency To Progress Bar On Campaign Pages

This only applies to campaigns created with the visual builder introduced in v1.8.0.

David Bisset PRO
<10
Code Preview
php
<?php
add_filter( 'charitable_campaign_builder_progress-bar_field_display', 'test_campaign_builder_field_display', 10, 2 );
function test_campaign_builder_field_display( $html, $campaign_data ) {
	// search for "Goal:" and add a £ symbol to the goal amount.
	$html = str_replace( '<span>Goal:</span> ', '<span>Goal:</span> £', $html );
	return $html;
}

Comments

Add a Comment