MyBB Community Forums

Full Version: A clear news bar Issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
undefined
Why it is required to have a plugin for this?

Quote:If you go to MyBB's forum, you will notice the bright colorful newsbar. Well, you can easily make these as well. This tutorial will add these newsbars to every forum page, not just the index so please see the demo below.

First, Go to
ACP>>Templates>>**Your Theme**>>Head Templates>>Header

and add

<p class="newsbar">Your Important Announcement Here</p>
somewhere in the header (I recommend the bottom )
Notice the <p class="newsbar"> This is the name of this newsbar. If you have more than one, you can name this to something like "Charlie" and then you can have more than 1 newsbar on your forum. Now save that template.

Second, go to:

ACP>>Templates>>**Your Theme**>>Ungrouped Templates>>HeaderInclude
or
ACP>>Themes>>**Your Theme**>>global.css (without <style> tag lines)

At the bottom, add
<style type="text/css">
.newsbar {
    background: #00BFFF;
    border-top: 2px solid #1E90FF;
    border-bottom: 2px solid #1E90FF;
    text-align: center;
    margin: 10px auto;
    padding: 5px 20px;
    font-weight: bold;
}
</style>
Again, notice the .newsbar { , if you are going to have another newsbar and use the name above for it (Charlie) you would replace newsbar with Charlie.
Save this template then check out your forum

(Thanx to 'Conor' for this.)
undefined
It is defined clearly :p