MyBB Community Forums

Full Version: Change backgroundcolor forum announcement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In every forum there is a possibility to add a 'forum announcement' in top.
I want to change the background-color of this announcement to get extra attention.
How can I do this?

I tried to add this in the global.css but it did'nt work Confused

.forumdisplay_announcement {	
background-color: #F2F6FB;	
}


I did the same with the 'sticky'-posts wich worked very well:
.forumdisplay_sticky {	
background-color: #F2F6FB;	
}

Why it's not working with the 'announcement'-background?
You need to add a class to the announcement bit templates. Just edit the template forumdisplay_announcements_announcement, find class="{$bgcolor}" and replace it with class="{$bgcolor} forumdisplay_announcement" (it appears 6 times in the template) and save. You will also need to edit the templates forumdisplay_announcement_rating and forumdisplay_announcements_announcement_modbit with the same code.
Thanks Paul; I will try it this evening.