Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Change error message display


imjscn
Participant

@imjscn

@boonebgorges
I followed your suggestion, got the thing working! However, by my codes, I will have to write down each error for eah label color. Is there a way to run through all the erros and match it with label?
Here’s what I’ve done so far:
In the register.php, I test the signup name field by adding style to the label line like this:
`<label for="signup_username" style="”> `
In the bp-custom.php, I added this function:
`<?php
function elsa_bp_label_color( $errocolor ) {
global $bp;
if ( !empty( $bp->signup->errors ) )
$errorcolor = ‘color:red’;
else
$errorcolor = ”;
return $errorcolor;
}
?>`

Thanks for helping!

Skip to toolbar