@ewebber – Just checked. Yeah the message gets escaped, so you can’t add HTML by default.
If you want to add HTML, you’ll have to remove how BP renders the message, then you’ll have to write your own custom message function.
Untested, but this should work in your theme’s functions.php:
`
remove_action( ‘wp’, ‘bp_core_setup_message’, 2 );
function my_bp_core_setup_message() {
global $bp;
if ( empty( $bp->template_message ) )
$bp->template_message = $_COOKIE;
if ( empty( $bp->template_message_type ) )
$bp->template_message_type = $_COOKIE;
add_action( ‘template_notices’, ‘my_bp_core_render_message’ );
@setcookie( ‘bp-message’, false, time() – 1000, COOKIEPATH );
@setcookie( ‘bp-message-type’, false, time() – 1000, COOKIEPATH );
}
add_action( ‘wp’, ‘my_bp_core_setup_message’, 2 );
function my_bp_core_render_message() {
global $bp;
if ( $bp->template_message ) {
$type = ( ‘success’ == $bp->template_message_type ) ? ‘updated’ : ‘error’;
?>
<div id="message" class="”>
template_message; ?>
<?php
do_action( ‘bp_core_render_message’ );
}
}`