Forums

Add a Banner above the header in Coraline theme (1 post)

  1. Rithira
    Member
    Posted 1 year ago #

    I'm working on a site that is using the Coraline theme and I need to figure out a way to add a banner ad above the header. I added the following code in the header.php under this line of code.

    <body <?php body_class(); ?>>
    <div class="<?php do_action('container_style'); ?>" id="container">

    <div style="background-color: #ffffff">
    <img src="http://www.pokerstars.com/bnrs/current/728x90.gif" class="aligncenter">
    </div>
    <?php do_action('above_header'); ?>

    It had worked, but the ad was in the wrong spot. It showed up above the title of the site, but I wanted it to be between the title and the header. Then I had to make a change to the link and it stopped working and would not appear at all.

    This code had worked on a previous site that I had worked on but the theme seem a lot less complicated. Is there a different code I should use? Perhaps I've got it wrong somewhere or am putting it in the wrong place?

    Any advice would be helpful! Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Topic