How Do I Add a Rotating Banner to WordPress?

Adding a rotating banner to WordPress is a relatively easy process. First, you will need to create a new file called header.php and place the following code inside of it:

Next, you will need to create a new file called footer.php and place the following code inside of it:

footer();

Now, you will need to create a new file called banner.php and place the following code inside of it:

require_once(‘header.php’);

require_once(‘footer.php’);

Next, you will need to create a new file called styles.css and place the following code inside of it:

body {

background-color: #F5F5F5;

}.banner {

height: 100px;

width: 100%;

position: absolute;

left: 0px;

top: 0px;.banner a {

color: #FFF;

text-align: center;.banner a:hover {

color: #FFFFFF;.banner img {

max-height: none;

max-width: none;.banner h2 {

font-size: 25px;.banner p {

font-size: 12px;.banner a:active {.banner a:focus {.banner ul {

list-style-type: disc;

margin: 0px;

padding: 0px;.banner li {

display: inline-block;

background-color: #008000;

Now, you will need to create a new file called style.css and place the following code inside of it:.