Center ad above header in Simple Hooks

Community Forums Forums Design Tips and Tricks Center ad above header in Simple Hooks

This topic is: resolved

Tagged: 

This topic contains 6 replies, has 3 voices, and was last updated by  AC 1 year, 5 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #46831

    jeanettenyberg
    Participant
    Post count: 4

    Hi! What would I add to my code to center my ad above my header? http://artchoo.com

    Thanks!

    http://artchoo.com
    #46839

    AC
    Blocked
    Post count: 7712

    Try wrapping it like this:

    [html]<center>YOUR CODE</center>[/html]

    #46853

    Marc
    Moderator
    Post count: 197

    Since the <center> tag markup was depreciated in HTML 4.01 and is NOT supported in HTML5 you might want to consider using one (or more) of these CSS methods -

    http://www.w3.org/Style/Examples/007/center.en.html

    In my own limited experience If you want to center your Google ad with a method that will work in both HTML 4.01 and HTML5 you can place the ad script between <p style=”text-align: center;”> and </p>


    • This reply was modified 1 year, 5 months ago by  Marc.
    • This reply was modified 1 year, 5 months ago by  Marc.
    #46905

    jeanettenyberg
    Participant
    Post count: 4

    So, thanks for the answers. I had read that that tag wouldn’t work in HTML5, but I threw it in there and it worked! I tried to use the CSS code for centering an image, and I tried it in a few places, since I wasn’t totally sure where to put it- no luck with that, but I was probably doing it wrong.

    Where would I place it if my ad code is this:

    <script type=”text/javascript”><!–
    google_ad_client = “ca-pub-1406651235130635″;
    /* leaderboard */
    google_ad_slot = “6077708182″;
    google_ad_width = 728;
    google_ad_height = 90;
    //–>
    </script>
    <script type=”text/javascript”
    src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
    </script>

    #46953

    AC
    Blocked
    Post count: 7712

    Hi Jeanette, I handle the support for Eight Crazy Designs who developed the Innov8tive theme you are using. Where do you want the 728 x 90 advertisement to show up? Centered at the very top, centered below the navigation… in the footer area… where at?

    #46980

    jeanettenyberg
    Participant
    Post count: 4

    I have it at the very top- before my header. It’s centered okay now with the html tags- so thanks.

    #46982

    AC
    Blocked
    Post count: 7712

    Ok, I will close this thread now.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Center ad above header in Simple Hooks’ is closed to new replies.