• kzkomputers

    (@kzkomputers)


    hey guys, I figured out how to get the ad banner there but its to high. I also figured out how to get it centered but i dont know how to bring the banner down now. If you can take a look at https://www.kzkomputers.com and youl see what im talking about.

    Is there a specific code i need? Im new to coding and dont know to much about it. Any help would be appreciated.

    This is what my banner code looks like now

    <center>[<script type=”text/javascript”><!–
    google_ad_client = “ca-pub-7004674886429240”;
    /* header */
    google_ad_slot = “7508208066”;
    google_ad_width = 468;
    google_ad_height = 60;
    //–>
    </script>
    <script type=”text/javascript”
    src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
    </script>]</center>

Viewing 6 replies - 1 through 6 (of 6 total)
  • Michael

    (@alchymyth)

    wrap the ad into a span with a css class; then use css in style.css to push the ad down;

    example:

    <span class="header-ad">ADCODE</span>
    .header-ad { margin-top: 20px; text-align: center; }

    Thread Starter kzkomputers

    (@kzkomputers)

    thanks man. This other guy gave me a code as well but i couldnt find out why i cant move my ad down. Now i see that margin-top: is what i was missing. I had margin-left:

    Thank you very much

    Thread Starter kzkomputers

    (@kzkomputers)

    also got another question. If you visit my site on the bottom there is extra space because the categories go down far, and the post squares stay in place.

    What php do i have to enter to add something to that space ? would it be the index php or page php ?

    Michael

    (@alchymyth)

    the front (posts) page is usually done with index.php (or home.ph if it is in the theme files)

    Thread Starter kzkomputers

    (@kzkomputers)

    a okay. Il try putting a code in there and see how it shows up. Also is there any specific place i need to put the code like after <body> i think correct ?

    Thread Starter kzkomputers

    (@kzkomputers)

    oh and for a facebook like button can i put in the iframe code ? or does it have to be the html one ? because i dont want it to be in a sidebar widget but on the page itself.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to align my head banner ad’ is closed to new replies.