• For some reason when I create a linked image in my new widget area, it does not appear to be clickable at all.

    My website is TF2TightRope.com and I am using a child theme. The code I am using is for a banner from Kinguin. I tested the code via a plain HTML file and that works, but it won’t show or work as a hyperlinked image in the widget area.

    Any help is much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • seems to be a CSS layering issue;
    try to add:

    #secondary-sidebar {
    position: relative; z-index: 10;
    }

    Is this the code that you added:

    
    <img src="https://www.kinguin.net/affiliateplus/banner.php?id=216&account_id=24784&store_id=1" alt="10x Random Kinguin 160x600" title="10x Random Kinguin 160x600" width="160" height="600" style="display: none !important;">
    

    The reason why it doesn’t work is that a PHP file is not a valid image type. That is, you can’t put a PHP file as the src attribute. You would need either a .jpg, .png, .gif as the src attribute.

    Thread Starter cooljosh3k

    (@cooljosh3k)

    Thanks Michael. I tried, but this doesn’t work.

    Thanks CrouchingBruin. So you cannot use this kind or src address in a widget? It works just fine if I test it on a lone page by itself. Lone page test is here: https://www.tf2tightrope.com/WidgetHTML_01.html

    • This reply was modified 8 years, 4 months ago by cooljosh3k.
    Thread Starter cooljosh3k

    (@cooljosh3k)

    I was able to work around the issue using an <iframe>.

    Yes, putting it into an iframe would definitely work, using an image tag would not. Glad you figured it out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget HTML HREF not working?!’ is closed to new replies.