A guide to adding captions under images in your Joomla article content
Joomla! 3.3 (3.2) allows you to add images also using “Images and links” – this section lets you display images and links in your articles using standardized layouts. By the way, this feature can be hidden by a user with Admin permissions in the Article Manager Options.
By default Captions are not showed in most Gavick templates. But if you want to show captions under Full article image – it request small changes (customization) in template file:
- Using Joomla edit mode or FTP client open this file: templates/gk_TemplateName/html/com_content/article/default.php
- Find line where you will see following code (~188 line):
src="<?php echo $images->image_fulltext; ?>" alt="<?php echo $images->image_fulltext_alt; ?>"/>
before closing </div> please add following code:
<p class="img_caption"> <?php echo htmlspecialchars($images->image_fulltext_caption) ?></p>
- Save changes or upload changed file to your sever.
As you see this caption uses “img_caption” CSS class – so you can customize it – adding your own style to change appearance.
Image Captions after migration from old Joomla! version
This article was first published