ads on pictures and other media files

Posted in: Newspaper
Post count: 226

hi guys,

thanks again for this awesome theme! I was wondering if is possible to make ads show on media files, like pictures and vids. I noticed some of my pics have ranked in Google images but when you go to them only ad that shows is in the sidebar. If is not possible, can this functionality be added in future releases?

thanks in advance!

Post count: 9544

This is not a normal function of online publishing sites, but there may be a plugin for this rare case usage. However that is typically done with an overlay, not rewriting content into the graphic. And when Google grabs the image for image search they would not also grab the css/dhtml overlay with an advertisement. You also cannot “inject” advertising into videos source from YouTube or Vimeo, as that would violate all kinds of usage terms. For your own videos, why not simply put an ad in the video when you create them?

I doubt any theme, including this one, will be adding a function to “inject” advertising into media files, particularly since the theme would not be able to determine whether or not you “own” the content the ads would be injected into, and again – this would not be possible with image and video files except via an overlay on a CSS/dhtml “layer.”

Post count: 9544

Example plugin
https://wordpress.org/plugins/in-image-ads-manager/

Post count: 226

hi there,
thanks for taking the time for answering me, this is not what I meant actually. I want the ads to show apart from the picture, right now i have set up inline article ads with adsence so in pages with content i have 2 ads included into the content itself, what i want to do have is a position where i can put ads here. http://surgerystars.com/julie-benz-plastic-surgery-before-and-after-pic/julie-benz-january-2010/ this i an example page.

Post count: 6600

Hi,

You can use the do_shortcode function and add the ad to the attachment page template like this: http://screencast.com/t/tP77pTc4a

You can find the other ad boxes short-codes here

Here is the code I used:
<?php echo do_shortcode('[td_ad_box spot_id="custom_ad_3"]') ?>
Just make sure you have the ad code in the ad box in Theme Panel > Ads: http://screencast.com/t/CPxv1iSrw
Should get this result: http://screencast.com/t/0W2FtlZU

Thanks

  • This reply was modified 11 years by Lucian.
Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.