1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need Help Centering DFP/Adsense Ads In Sidebar Widget

Discussion in 'WordPress' started by kenny1, Sep 13, 2016.

  1. #1
    I've tried everything to center the two DFP/Adsense ads in the sidebar widgets on my website but not thing has worked. Someone please help -_-

    My website is homesoftherich.net
     
    kenny1, Sep 13, 2016 IP
  2. Furquan Ahmed

    Furquan Ahmed Well-Known Member

    Messages:
    819
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    135
    #2
    You are not using responsive theme on your site & do you know every day mobile vistor are increasing!
     
    Furquan Ahmed, Sep 13, 2016 IP
  3. kenny1

    kenny1 Well-Known Member

    Messages:
    507
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    130
    #3
    How isn't it a responsible theme? Huh??? The theme is mobile friendly.
     
    kenny1, Sep 13, 2016 IP
  4. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #4
    You should not have document declarations in widget code for starters lol... Are you talking home page here? I just see a bunch of html. For the sake of a non argument you need a < at the beginning of that mess for but that has to go anyway. Its a bit ghetto but you can try wrapping that with <center></center> it may work but its likely wrong. I need to see what you are trying to stick there.

    Nigel
     
    Nigel Lew, Sep 13, 2016 IP
  5. th.sigit

    th.sigit Well-Known Member

    Messages:
    178
    Likes Received:
    32
    Best Answers:
    1
    Trophy Points:
    135
    #5
    Have you tried this?

    .sidebar .widget-2,
    .sidebar .widget-5 {
      padding: 0 !important;
    }
    Code (CSS):
     
    th.sigit, Sep 13, 2016 IP
  6. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #6

    Can you see ads on his site? All is see is an odd block of code. I just made sure i shut off all my security stuff and adblock as well. It doesnt seem to work at all on firefox.
     
    Nigel Lew, Sep 13, 2016 IP
  7. th.sigit

    th.sigit Well-Known Member

    Messages:
    178
    Likes Received:
    32
    Best Answers:
    1
    Trophy Points:
    135
    #7
    Yes, when I disabled adblocker. Of course I turned it on again then.

    Probably just some other security settings --browser, proxy, blocked iframe, default stuff-- that you setup once in your browser or computer or connection. Those trivial things that we setup once in the past and simply forget.
     
    th.sigit, Sep 13, 2016 IP
  8. kenny1

    kenny1 Well-Known Member

    Messages:
    507
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    130
    #8
    Where would I add the CSS code?
     
    kenny1, Sep 15, 2016 IP