1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[info] How to add banners to WP headers

Discussion in 'Blogging' started by icecubes, Nov 4, 2009.

  1. icecubes

    icecubes Newbie

    Joined:
    Nov 11, 2008
    Messages:
    12
    Likes Received:
    0
    There seems to be little info about on how to add banner ads to the header
    in wordpress so i found my own solution.

    visit hxxp://www.imexpertguru.co.uk for examples change the xx to tt

    you need the WP addon called WPAds and a little bit of html code
    ill post some screenshots to help

    i am actually using 2 images a black one in the background slightly
    larger than the banner this gives a black line round the banner.

    [​IMG]
    this is the main wpads page in wp - note the code in template section

    [​IMG]
    this shows the code for the ad

    [​IMG]
    and this is where to put the code in the header.php

    hope this helps someone but dont spread outside BHW please
    as i may want to sell the info sometime
     
  2. The Scarlet Pimp

    The Scarlet Pimp Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 2, 2008
    Messages:
    788
    Likes Received:
    3,127
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    Last edited: Nov 5, 2009
  3. icecubes

    icecubes Newbie

    Joined:
    Nov 11, 2008
    Messages:
    12
    Likes Received:
    0
    the problem with all i tried (not sure if i tried max banner ads)
    was it was unclear how or impossible to get the banners into the header

    just shareing my solution to the problem, im sure there are many other ways
    too

    :)
     
  4. Andre2812

    Andre2812 Registered Member

    Joined:
    Apr 8, 2009
    Messages:
    51
    Likes Received:
    11
    Home Page:
    Adrotate is another plugin, which allows for different banners rotating wherever you place the code.
     
  5. enforce-

    enforce- Newbie

    Joined:
    May 28, 2009
    Messages:
    39
    Likes Received:
    6
    Was looking for next alternative from editing my header.php file. I was doing this little edit.

    Step 1.

    Paste this in header, above <div class="logo">
    Code:
    <div class="468"> 
    <table style="width: 468px" cellspacing="5" align="right" cellpadding="10""> 
        <tr> 
            <td> 
    PASTE 468 BANNER CODE HERE 
    </td> 
        </tr> 
    </table> 
    </div> 
    Step 2.

    Paste this code below in style.css


    Code:
    } 
    
    #468, .alignright { 
        float:right; 
            padding-top:15px; 
        padding-right:10px; 
    }  
    There is many was to do this.