I would like to add a tag around the intro text, but only if the article has an intro image.
It's easy to add markup around the image in the intro_image layout file. And in the file blog_item.php, I can see where the text is included:
<?php echo $this->item->introtext; ?>
But can anyone help me write an if statement so that I can add a <div>
around the text so that I can control the layout if the intro image has been set?