Insert After Image
-
Hello,
I am switching from Quick Adsense to Ad-inserter, but run into a problem when i try to insert my ad below an image.
I used the setup ( after paragraph ) and put in “count only paragraphs that contain … https://images.ourwebsite.com/wp-content/uploads).
The entire setup would work fine, except that in our posts we do NOT have a ” </p> ” after the image. Instead our content text follows directly the image syntax.Example of our code with image, directly followed by article content:
…
…
<p><img src=”https://images.ourwebsite.com/wp-content/uploads/image-name.jpg” height=”630″ width=”1200″>This is the first sentence of our content text. And goes on with more sentences until here.</p><p>Here starts the text of the second paragraph of our blog post
…
…As you see there is no </p> right after the image, instead the image has been dropped right before the text.
In the old Quick Adsense plugin was an option to insert “after image” and it detected and inserted the ad perfectly straight after the image and before the first text.
With Ad-Inserter and the above mentioned “count only paragraphs that contain…” setup, it inserts the ad below the first text paragraph and not directly after the image.
Is there any way to get Ad-Inserter insert the ad right after the image?
Would be awesome if anybody could help.
Thanks in advance.
- The topic ‘Insert After Image’ is closed to new replies.