php - How to change the css of the following line? -
there $message variable. in variable there string concatenation happening. want use css on variable anyhow , know possible. tried inline css no result. please in matter.thanks...
$message = __( 'someone requested password reset following account:' ) . "\r\n\r\n"; $message .= network_home_url('/') . "\r\n\r\n"; $message .= sprintf(__('username: %s'), $user_login). "\r\n\r\n"; $message .= __('if mistake, ignore email , nothing happen.') . "\r\n\r\n"; $message .= __('to reset password, visit following address:') . "\r\n\r\n"; $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" .rawurlencode($user_login), 'login') . ">\r\n";
you can put inside html tag , provide style or class attribute
$message = '<div class="themessage" style="font-family:helvetica;color:red;">something goes here</div>';
and don't forget close single , double qoutes. guess is, question not of php, rather it's wordpress issue.
Comments
Post a Comment