I am currently editing the profile-form.php to style the user's profile. Above the profile it shows "profile updated" or error message in case you updated the profile.
I added a div around the message to make it more prominent but now, even if I don't update the profile, the box shows up.
<div style="background: #ffffe0; border:1px solid #e6db55">
<div style="padding:10px 10px 0px 10px">
<?php $template->the_action_template_message( 'profile' ); ?>
<?php $template->the_errors(); ?>
</div>
</div>
How can I make it that the box only shows up if there is actually a message to be displayed. Do I need to add some sort of if statement?
I would appreciate any help!
ThanKs!