[Support request] Placing Ads Below First Single Post Image

Home Forums Support [Support request] Placing Ads Below First Single Post Image

Home Forums Support Placing Ads Below First Single Post Image

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #481108
    Bobby

    Hello Tom,

    Ive been scouring the web trying to find out how to manually hard code a 320×50 mobile ad right underneath the first single post image…before the paragraph begins. I have the code to placing ads between the first, second or third paragraph, but I can’t find one to place an ad before the paragraph/underneath the single post content image.

    Do you know of any code that will do this???

    Thanks,

    Bob

    #481265
    Tom
    Lead Developer
    Lead Developer

    Hi Bob,

    Just so I understand, you want to automatically place an ad below the first image of each single post?

    #481301
    Bobby

    Yes….exactly.

    #481480
    Tom
    Lead Developer
    Lead Developer

    I took a look around and couldn’t find much on this unfortunately. It may be worth asking over on https://wordpress.stackexchange.com/. Someone might have the code handy.

    #494846
    Bobby

    Oh ok. Quick question..

    Do you think this could be achieved by using a filter? For example, like using a filter to insert a div class before the paragraph..

    #494911
    Tom
    Lead Developer
    Lead Developer

    I believe it would be more complicated that that. It would involve the code searching the content for the first image, and then inserting the HTML. I’m not even 100% sure it’s possible using PHP only – it may require javascript.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.