How do I edit the ‘Phase 1, 2, 3’ etc. text?

Woah there! This is an advanced workaround for Client Portal. Make sure you backup your WordPress website or edit via your FTP before changing any codey things.

Here's how to edit or remove the 'Phase' text in Client Portal:

In WordPress, navigate to Appearance -> Editor

On the right hand side, click on Theme Functions (functions.php). 

Remove the "Phase X" text altogether

To remove the 'Phase' text completely, paste in the following code snippet at the bottom of functions.php.

function my_leco_cp_remove_phase_x_text() {	
	$text = '';	
	return $text;
}

add_filter( 'leco_cp_phase_x_text', 'my_leco_cp_remove_phase_x_text', 10, 2 );

Remove the number from "Phase X"

To remove the phase number, paste in the following code snippet at the bottom of functions.php.

function my_leco_cp_remove_x_text() {
	$text = 'Phase'; 	
	return $text;
}

add_filter( 'leco_cp_phase_x_text', 'my_leco_cp_remove_x_text', 10, 2 );

If you also want the Phase text to say something different, simply switch out:

$text = 'Phase';

And change 'Phase' to whatever you want it to say. 

Replace the "Phase" with "Section" (or any other word) in "Phase X"

To replace the word 'Phase', paste in the following code snippet at the bottom of functions.php.

function my_leco_cp_change_phase_x_text( $text, $number ) {	
	$text = 'Section ' . $number;	
	return $text;
}
add_filter( 'leco_cp_phase_x_text', 'my_leco_cp_change_phase_x_text', 10, 2 );

In the above snippet, change the following text to say whatever you want: 

$text = 'Section ';

Still need help? Contact Us Contact Us