Welcome to WebmasterWorld Guest from 54.167.5.15

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Place Ad Automatically Halfway Through Post Sitewide?

     

Planet13

2:04 pm on Jul 6, 2014 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



Is there a way to show an advertisement "below the fold" but above the footer area automatically sitewide?

Is there either:

1) A plugin that will allow me to insert some advertising code automatically in posts sitewide after, say, two paragraphs (without having to add by hand to each post), or...

2) Some sort of javascript / css that will display a HORIZONTAL ad once someone has scrolled a certain number of pixels? (hopefully it wouldn't cover up the content, meaning that the content would make room for the ad.)

I am just tyring to avoid going in and having to hard code ads into the blog posts themselves.

Thanks in advance.

lorax

12:38 am on Jul 10, 2014 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



You could do either but they'll both require you to do some editing of the theme's post template file.

Wouldn't be too hard for a PHP programmer to do for you if you don't feel comfortable doing it yourself.

Might even be a plugin out there that does it - I'm sure someone has had a similar need.

not2easy

2:49 am on Jul 10, 2014 (gmt 0)

WebmasterWorld Administrator 5+ Year Member Top Contributors Of The Month



There is a plugin called Google AdSense plugin, I have never used it, but it looks current and has over 280,000 downloads. This is not a recommendation, as mentioned I've never used it. I think you might try lorax's suggestion and create a test post template and see how that goes.

Planet13

8:04 pm on Jul 11, 2014 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



Thanks for the suggestions.

any idea of what particular php function I might need to use to insert it?

In the meantime, I will look into the adsense plugin as well and see what I come up with.

Thanks in advance.

not2easy

8:49 pm on Jul 11, 2014 (gmt 0)

WebmasterWorld Administrator 5+ Year Member Top Contributors Of The Month



One consideration about this idea - have you read the discussion about recent changes in quality standards? There is a recent and ongoing discussion here: [webmasterworld.com...] and one of the changes involves this kind of ad placement, now viewed with some disfavor in the instructions to quality raters. I had only one ad showing this way, but I didn't like it when I put it in just a few days before I read that. Whether the information is 100% accurate or not, it agreed with my 'gut feeling' and I took it out. It had been placed halfway down the page content as an experiment. (not on a WP site).

lorax

10:40 pm on Jul 11, 2014 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



There will likely be several PHP & WordPress functions involved. To many possibilities to list them all here.

Planet13

2:22 pm on Jul 12, 2014 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



@ not2easy:

Yes, I have read that discussion, and am currently reading through the rating guide as well.

My situation might be a little bit different, but then again, maybe not: The "ad" would be for the ecommerce pages on my same site.

@ lorax: thanks for the note about the complexity. I will try and find some other way of doing this then coding myself.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month