Ad in footer

  • JesseGolomb

    #6490

    Hey all,

    i’ve got an ad in my footer with this java code (its inserted as a widget):

    <!-- begin 300x250 Top The Fan Manifesto -->
    <div style="text-align:left;">
    <script language="JavaScript" type="text/javascript">
    window.dctile = Number(window.dctile) + 1 || 1;
    window.dc_ord = Number(window.dc_ord) || Math.floor(Math.random() * 1E10);
    if (dctile==1) {var vdcopt = 'ist';} else {vdcopt = '';}
    if (17>dctile) document.write('<script type="text/javascript" src="http://ad.doubleclick.net/adj/yb.soapboxsportsbyte/;chan1=gensports;rating=pg;dcopt=' + vdcopt + ';yb=ad;s1=;s2=;tile=' + dctile + ';sz=300x250;ord=' + dc_ord + '?"></script>n');
    </script>
    </div>
    <!-- End ad tag -->

    If you go to my site: thefanmanifesto.com you can see that the white area behind the ad is being eclipsed. How do I either get rid of this white area or expand it to fit the width of the ad?

    Thanks for your help

    Anonymous

    #34522

    Ad this in your child theme style.css:

    #text-19 {background:none; border:none; box-shadow: none}

    This will remove white background

    Mod

    Kenneth John Odle

    #34523

    Put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard. I have fixed this for you.

    Anonymous

    #34524
    Quote:
    Put code in between backtick (`) characters. It’s usually located above the Tab key on your keyboard. I have fixed this for you.

    Well, if you’re using non english keyboard it’s not there :). On my keyboard (croatian) it’s here: AltGr+7 (`), above tab I have this: ¸

    Anonymous

    #34525

    ^ It’s usually located above the Tab key ..

    Anonymous

    #34526
    Quote:
    ^ It’s usually located above the Tab key ..

    Right, understand that, but it took me quite some time to find it, and to understand what the heck are they (Ken & Josh) talking about, than I just google it 🙂

    I’m backtick expert now …

    JesseGolomb

    #34527

    This didn’t work for me. Is there somewhere specific in the stylesheet it needs to go? Or is there a way to edit the java code above to make it easier?

    Mod

    Kenneth John Odle

    #34528
    Quote:
    Is there somewhere specific in the stylesheet it needs to go?

    Make sure it’s in a child theme stylesheet, or in Custom CSS feature. Add it at the end.

    Quote:
    Or is there a way to edit the java code above to make it easier?

    No, CSS and JavaScript are different things.

    The above code does work:

    WTbWV.png

    JesseGolomb

    #34529

    Got it! The problem was actually the backticks…for whatever reason, they stopped the code from working.

    One more question…how would I do the same thing to the ad on the sidebar (get rid of the white background..)

    Thanks for your help!

    Mod

    Kenneth John Odle

    #34530

    Have you installed Firebug? It lets you isolate those CSS classes and id’s easily and you can make modifications on the fly.

Viewing 10 posts - 1 through 10 (of 12 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.