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  anitac 1 year, 1 month ago.

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

    jeanettenyberg
    Participant
    Post count: 2

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

    Thanks!

    http://artchoo.com
    #46839

    anitac
    Participant
    Post count: 6988

    Try wrapping it like this:

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


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #46853

    Marc
    Moderator
    Post count: 176

    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, 1 month ago by  Marc.
    • This reply was modified 1 year, 1 month ago by  Marc.
    #46905

    jeanettenyberg
    Participant
    Post count: 2

    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

    anitac
    Participant
    Post count: 6988

    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?


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #46980

    jeanettenyberg
    Participant
    Post count: 2

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

    #46982

    anitac
    Participant
    Post count: 6988

    Ok, I will close this thread now.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

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

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