• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

Vincent

Well-known member
#1
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.png
 

Jake Bunce

XenForo moderator
Staff member
#2
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:

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.
 

Allan

Well-known member
#3
Or alternatively, change the CSS selector:

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

Remove the red pieces:

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?