Need some code help

Discussion in 'Programming' started by SunShyne, Jul 19, 2010.

  1. #1
    I have a WP theme that has a ads.php file where I ad my code for ads. My code is simple, url and the image for the hyperlink. The ads show fine on the main page of the ad but when you click an article the ads dont appear but the alt text does.

    Any idea what could be amiss?

    thanks
     
    SunShyne, Jul 19, 2010 IP
  2. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #2
    You need to give a bit more information. Does the ads.php file get called from another file? What?

    I'm curious as well - if you're using WP why don't you use the Advertising Manager for Wordpress plugin? Then you can use widgets for sidebar ads or drop your ad directly into a post.
     
    mcfox, Jul 19, 2010 IP
  3. aquilax

    aquilax Member

    Messages:
    126
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    33
    #3
    Seems to me that the path to the image is relative ( img/image.jpg) and not absolute (/img/image.jpg).
     
    aquilax, Jul 20, 2010 IP
  4. SunShyne

    SunShyne Active Member

    Messages:
    975
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #4
    I will def try this plugin, than ks for the suggestion

    BINGO!! paths were relative. Added the slash and now all is well again. Appreciate the info sir
     
    SunShyne, Jul 23, 2010 IP