• Hi

    In my current theme, I am able to add my Google ads at the top of the page, top of posts, middle of post and bottom of post.

    Is there an option in this theme I can use to achieve this?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    if you would like Adesene to show in the header as on my page https://www.starta-blogg.se – please follow these steps:

    Log in to your WordPress account and choose “Appearence” and then “editor” (in swedish “utseende” och “redigerare”)

    To the right on your screen locate header.php and click on it!

    Locate the row: <?php if ( ot_get_option(‘site-description’) != ‘off’ ): ?><p class=”site-description”><?php bloginfo( ‘description’ ); ?></p><?php endif; ?>

    After the above row enter:
    <div class=”ads”>
    Your Adsense code</div>

    Now the ad will hopefully show up in your header. If you would like to adjust the position of the ad your have to ad some code to your css-file.

    Either your have a child CSS-file or you do a “quick-fix” and add the code directly to the style.css file.

    .ads {
    display: block;
    float: right;
    margin-right: 5px;
    margin-top: 0px;
    }

    Adjust margin-right and margin-top to your needs (from -100px to 100px).

    Good luck!

    Thread Starter isaac2k2

    (@isaac2k2)

    Thanks for the reply. I have already sorted this out using child theme

    If you no longer need help with this topic please mark this thread [resolved].

    Thread Starter isaac2k2

    (@isaac2k2)

    Marked resolved

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google ads display near top’ is closed to new replies.