Fixed <div class="importantMessage"> should be <p class="importantMessage">

Vincent

Well-known member
With the introduction of the Notices, the <div class="importantMessage"> stopped working.

There still are 3 error messages in the XenForo Default Package that use <div class="importantMessage">. In order to work it should be <p class="importantMessage">.

It's minor, but worth fixing :)

Example of one of the 3 not-good-visible error messages: ("The specified member...")
Screen Shot 2012-08-12 at 12.34.01.webp
 
Confirmed.

To fix, edit these three templates:

Admin CP -> Appearance -> Templates
> forum_view
> member_list
> thread_view


Each template has a:

Code:
<div class="importantMessage">...</div>

That needs to be changed to:

Code:
<p class="importantMessage">...</p>

Or alternatively, change the CSS selector:

Admin CP -> Appearance -> Templates -> xenforo.css

Remove the red pieces:

Rich (BB code):
p.importantMessage
{
	margin: 10px 0;
	color: @secondaryDarker;
	background-color: @secondaryLightest;
	text-align: center;
	padding: 5px;
	border-radius: 5px;
	border: solid 1px @secondaryLight;
}

p.importantMessage a
{
	font-weight: bold;
	color: @secondaryDarker;
}

This is how it was in 1.0.x. I'm not sure why the change.
 
Or alternatively, change the CSS selector:

Admin CP -> Appearance -> Templates -> xenforo.css

Remove the red pieces:

Rich (BB code):
p.importantMessage
{
margin: 10px 0;
color: @secondaryDarker;
background-color: @secondaryLightest;
text-align: center;
padding: 5px;
border-radius: 5px;
border: solid 1px @secondaryLight;
}
 
p.importantMessage a
{
font-weight: bold;
color: @secondaryDarker;
}
What is a p before the class?
 
Top Bottom