The MyBB Community Forums has a bar at the top of the index page. This is a simple template modification as follows:
For the bar only on the index page, follow this procedure:
- Go to Admin CP --> Templates & Style --> Templates --> *expand your template set* --> Index Page Templates --> index.
- Find:
{$headerinclude}
- Add after:
<style type="text/css"> .newsbar { background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E; text-align: center; margin: 10px auto; padding: 5px 20px; font-weight: bold; } </style>
- Change the colors above to the colors of your choice if you wish.
- Find:
{$header}
- Add after:
<p class="newsbar">Your Important Announcement Here</p>
<p class="newsbar_red">...</p>for example in your code.
For the bar to show up on all pages, follow this procedure:
- Go to Admin CP --> Templates & Style --> Templates --> *expand your template set* --> Ungrouped Templates --> headerinclude.
- At the end of the template, add:
<style type="text/css"> .newsbar { background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E; text-align: center; margin: 10px auto; padding: 5px 20px; font-weight: bold; } </style>
- Change the colors above to the colors of your choice if you wish.
- Go to Admin CP --> Templates & Style --> Templates --> *expand your template set* --> Header Templates --> header.
- At the end of the template, add:
<p class="newsbar">Your Important Announcement Here</p>
<p class="newsbar_red">...</p>for example in your code.