On my Wordpress blog, I have right aligned the images when inserting them, where the body text wraps around them perfectly. I would however like to include text underneath the images such as "Click Here to Order".
I tried adding the order link html as a caption to the image media but that didn't seem to work. I also tried wrapping the image in a DIV and putting the link below it but it didn't group them as desired.
What would be the best way to accomplish this?
<h2>Best Mixers</h2>
[table id=2 /]
<h2><a name="kitchenaid"></a>Kitchenaid</h2>
<img class="alignright size-medium wp-image-1323" src="https://website.com/mixer-300x300.jpg" alt="Kitchenaid Mixer" width="300" height="300" />
Did you try
<div class="alignright">
<img><br>
text
</div>
(Note the <br>
)
I'm not sure what Wordpress' various CSS rulesets (referred to by the class
attribute) do, but your objective is to group the image and its caption together in a <div>
and have that "object" (rather than just the <img>
) float to the right.