• I found by reading the forum how to have my adsense ad be placed into an articles and have text wrap around it. However, I can’t find a way to have this ad begin anywhere but the top of the article unless I place a marker manually when I post.

    Is there a way to have it placed after the first paragraph? Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter TitanJeff

    (@titanjeff)

    I’m giving this another shot since I figure there may be others who’d like to take advantage of it. Thanks.

    I’m leaning towards no since there’s nothing in between the first and second paragraphs for wordpress to pick up on.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    There’s no easy way to do it, no. A plugin could possibly be created to try to figure out the paragraphs, but any such plugin could be fooled by strange posts and such.

    A better way is simply to give your floating div a margin-top to push it down off the top of the post by some number of lines or pixels or whatever. The text will move into the margin (I think) and wrap around the div.

    Thread Starter TitanJeff

    (@titanjeff)

    I see. Thanks for the replies. I’ll give the margin-top a try.

    I wonder if it would be possible to create a plugin which would drop this down wherever the break for the summary occurs?

    Thread Starter TitanJeff

    (@titanjeff)

    I tried it out and all it did was push the article start down. Here’s the code:

    <div style=”float:left; margin:5px; margin-top:200px”><script type=”text/javascript”><!–
    google_ad_client = “pub-0629779704946873”;
    google_ad_width = 300;
    google_ad_height = 250;
    google_ad_format = “300x250_as”;
    google_ad_type = “text_image”;
    google_ad_channel = “”;
    google_color_border = “6699CC”;
    google_color_bg = “FFFFFF”;
    google_color_link = “000044”;
    google_color_text = “444444”;
    google_color_url = “6699CC”;
    //–></script>
    <script type=”text/javascript”
    src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
    </script>

    Don’t some of the adsense plugins already offer this option? Put a “tag” somewhere in the post where you want the ad and it replaces the tag with the ad when viewed.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Can you give us a link to an example page so we can examine the code in action?

    Thread Starter TitanJeff

    (@titanjeff)

    HandySolo, my goal is to have it built into the template so a marker isn’t required since I hope to have a number of posters to this blog.

    Otto42, the site is here:

    https://gotitansblog.com/?p=10#more-10

    Thanks again for all the help and suggestions.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    TitanJeff: There’s no adsense code on that page. I was kinda asking for an example of the page with the problems you’re actually having.

    Thread Starter TitanJeff

    (@titanjeff)

    Sorry for the confusion.

    I want to put the code on the page I provided a link for. Since the code was messed up, I dropped it. I can put it back in if you wish to see or give you the template code.

    Thanks.

    Aloha,

    Not sure if you still need this but I think I figured out a way to insert adsense between a chosen paragraph, whatever you’d like.

    Basically you pull the_content into a variable, explode the string at every paragraph (</p>) marker and then use a foreach loop to insert the adsense and print the paragraphs.

    I wrote a tutorial over at my blog Insert Adsense Between Paragraphs

    Hope it helps out.

    The plugins I looked at don’t really give you much to work with.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Having Adsense drop down into article’ is closed to new replies.