I am trying to figure out how to manipulate the code on my website:
<div class="the-post-thumbnail">
<img src="" alt="" width="" height="" />
</div>
<div class="post-body">
<p><img src="" alt="" width="" height="" /></p>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
<p><img src="" alt="" width="" height="" /></p>
</div>
Does anyone know how to target the first <p>
tag containing an image within the post-body
div and either hide it if there is an image in the the-post-thumbnail
div, or show it if not?