• I am trying to add a adsense banner in my header to the right of my logo and name. I have a header widget but when i use it the ad is directly over my logo and name. Ive been told i need to modify it using ccs. I am not very familiar with coding so was wondering if anyone could tell me the coding i would need to use. here is my site if it would help totalfitnessexperience.com thanks in advance

Viewing 11 replies - 1 through 11 (of 11 total)
  • First of all… don’t be afraid to post over on the Graphene forum!! That’s what we are there for ??

    How are you inserting this into your page? Did you add it to the header.php file? Or did you use an action hook?

    Thread Starter yogot7r

    (@yogot7r)

    oh ok thanks. i just went to the widget area and put the adsense widget in the header widget area and it shows up in my header area over my logo and name

    Yeah.

    Okay, go to graphene options -> advanced tab -> and click header.php

    Tick the box for graphene_header

    Now, go to your widget page, and you will see a new widget section titled “graphene header”

    Stick a text widget there, and place your code in the text widget.

    Now, it might be “off” as far as appearance.. but we can fix that with some simple css.

    So, go do what I’ve said, and come back when you’re done (so I can see it), and then I’ll give you the css you need to get it just right.

    Thread Starter yogot7r

    (@yogot7r)

    ok i did all that you said and got the code and put it in the text widget and nothing shows up on the header other than the title for the text.

    Which code did you put in the new widget? Is the only thing you added the adsense code?

    Thread Starter yogot7r

    (@yogot7r)

    yeah i just added the adsense code with is like 12 lines. i put it in the text area and nothing shows up

    Thread Starter yogot7r

    (@yogot7r)

    so i woke up this morning and the ad was there in the header. now, if you would be so kind to help me with the coding to get it over to the right side.

    I’m sorry, I forgot to “tick” the thread to notify me about follow-up posts.

    One sec while I go check it out.

    div,ul,li{margin:0px;padding:0px}#abgc{height:15px;left:449px;overflow:hidden;position:absolute;top:0;width:77px;z-index:9010}#abgb{position:absolute;left:0;margin:0}#abgs{margin:0;position:absolute;left:0px;overflow:hidden;display:none}

    Review #abgc in the stylesheet.

    Add this to the bottom of your child theme CSS file on a new line:

    #graphene-dynamic-widget-graphene_header {
      float:right;
      margin-right:480px;
      margin-top:-30px;
    }

    You can, of course, adjust the numbers to adjust the positioning.

    Thread Starter yogot7r

    (@yogot7r)

    sweet. i adjusted the numbers a little bit. i really appreciate your help. youre the man!!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘ad sense widget in header’ is closed to new replies.