Having some issues with my theme.

Discussion in 'HTML & Website Design' started by Humorous.tv, Jan 26, 2010.

  1. #1
    Hi guys, I bought a theme, and it is working great, except the only way to add an advertisement to the header is to use a code (built in advertising option in theme). That works great for adsense, and such, but I need to be able to paste an image in there with a link back to my advertising page. Is there any way to get around this? The website is humorous.tv, and I'm trying to get the ad in the top right side, right now adsense is there, but I want to put a your ad here banner there.

    Thanks,
    Zach
     
    Humorous.tv, Jan 26, 2010 IP
  2. arwen54

    arwen54 Active Member

    Messages:
    632
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    60
    #2
    all you have to do is go to your Themes editor in your WordPress Dashboard

    Appearance--> Editor
    and on the right hand side select header.php to edit

    look for this adsense code:
    <script type="text/javascript"><!--
    google_ad_client = "pub-9256165445619041";
    /* 468x60, created 1/26/10 */
    google_ad_slot = "6264582696";
    google_ad_width = 468;
    google_ad_height = 60;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    Code (markup):
    and remove it
    then hard code your new banner ad like so:
    <a href="http://youradsdomain.com"><img src="http://yoursite.com/images/nameofimage.gif" alt="banner" /> </a>
    Code (markup):
    make sure that your banner is no bigger than 468x60px
     
    arwen54, Jan 26, 2010 IP