Clicking homepage takes me offsite/Changing html to javascript

Discussion in 'HTML & Website Design' started by taalsi, Aug 3, 2012.

  1. #1
    Hi, delurking to hopefully get some help. My website is a pre-built Wordpress site. It has several widgets in place for advertising banners. I noticed that when I place my ad's html code in any of these boxes, there is a problem. When you click the home button on my site, instead of it taking you to my homepage, it takes you to the advertisers site. So somehow the ad code I was entering was affecting my home button. I don't know why, since I know very little about web design. Anyway, I noticed that this doesn't happen if the ad is an adsense ad. While trying to figure out what was going on, I noticed that the adsense ads are in javascript and the problematic ads are in html. At least, I think that's what I was seeing.

    So I'm wondering if there is a way to change my html affiliate links to javascript OR if someone knows what I can do to stop this issue from happening in the first place?

    TIA
    Erica
     
    taalsi, Aug 3, 2012 IP
  2. wyeoh

    wyeoh Greenhorn

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    8
    #2
    It could be the code you paste in did not close its tag properly and it somehow included your home button as part of the hot spot. Generally speaking, the html block cannot change the functionality of your existing entity, but a javascript may change/insert code blocks to existing entity. It may help if you post your site link here for us to look at.
     
    wyeoh, Aug 5, 2012 IP
  3. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    that makes sense , bad coding , unclosed tags. if the links are only HTML it should have anything to do with a javascript code. Unless you're using the wrong HTML links. Are those links ot the affiliate ads page, or HTML links of the actual link code they told you to paste into your page? If so, thats the ad for showing up on your page and not the actual website. Otherwise you have uclosed brackets or quotes < > ""
     
    ezprint2008, Aug 5, 2012 IP