Caption under photos in article?

This forum is for general questions about extensions for Joomla! 4.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
djcaptpln880
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 215
Joined: Mon Jul 26, 2021 9:32 am

Caption under photos in article?

Post by djcaptpln880 » Tue Dec 12, 2023 2:54 pm

Greetings

Is there an easy way to implement a caption under a photo of mine in an article?
I have tried adding DIVs to the photo and still not working.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44152
Joined: Sat Apr 05, 2008 9:58 pm

Re: Caption under photos in article?

Post by Webdongle » Tue Dec 12, 2023 3:28 pm

Code: Select all

<div><img src="relative/path/to/imagejpg" width="300" height="352" alt="bananas 2" style="float: left;">
<div style="float: left; clear: both;">some text here</div>
</div>
clear 01.JPG
https://www.w3schools.com/cssref/pr_class_clear.php



https://extensions.joomla.org/extension/jce/ and https://extensions.joomla.org/extension ... -mediabox/ Can be helpful
You do not have the required permissions to view the files attached to this post.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

djcaptpln880
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 215
Joined: Mon Jul 26, 2021 9:32 am

Re: Caption under photos in article?

Post by djcaptpln880 » Tue Dec 12, 2023 3:34 pm

Thx but did not work...

I added the code exactly as you pasted and the text does not show up under the image..

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44152
Joined: Sat Apr 05, 2008 9:58 pm

Re: Caption under photos in article?

Post by Webdongle » Tue Dec 12, 2023 4:07 pm

It does when the image is floated left. The screenshot proves it. Combinations of Float and Clear with nested divs works. You just need to persevere to get the effect you need.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
Nidzo2203
Joomla! Explorer
Joomla! Explorer
Posts: 324
Joined: Sat Nov 21, 2009 4:52 pm
Contact:

Re: Caption under photos in article?

Post by Nidzo2203 » Tue Dec 12, 2023 9:59 pm


User avatar
ManuelVoileux
Joomla! Intern
Joomla! Intern
Posts: 70
Joined: Sun Nov 24, 2013 8:24 am
Location: France
Contact:

Re: Caption under photos in article?

Post by ManuelVoileux » Tue Dec 12, 2023 11:25 pm

Hello ,
For image galleries, images , and captions, I use the action "image-gallery" of the plugin UP! It is on the JED. It is Joomla 5 ready without the compat plugin https://extensions.joomla.org/extension/up/
You just need to add a shortcode in an article, or in a module, in the editor tab, no need to go to the code tab. Then it shows in a gallery the images present in a folder, or one image as you like.
See and copy-paste the demo https://up.lomart.fr/demo/action-image-gallery

Code: Select all

Example of shortcode
{up image-gallery=images/folder-path} 
or for one image {up image-gallery=images/image-path}

You have several ways to add a caption. The one I prefer is a text file containing the captions in the image folder. You can see an example here https://voileux.org/2023-voileux-catalisa-scillies.html . On hover on the image you see the captions, but you can have the captions always shown.

UP! is a plugin with more than 140 actions. image-gallery is just one of them. I use UP! to show pdf files, responsive tables, and so much more. I have dramatically decreased the number of extensions on the "voileux" web site. At last UP! is for free, all the 140 actions, and the website with the examples to copy and paste.
Paradise for a non-coder.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44152
Joined: Sat Apr 05, 2008 9:58 pm

Re: Caption under photos in article?

Post by Webdongle » Wed Dec 13, 2023 12:20 am

Their demo site is broken
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2970
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Caption under photos in article?

Post by SharkyKZ » Wed Dec 13, 2023 6:53 am

Check "Show Caption" when editing the image in TinyMCE or enter the caption in "Figure Caption" field when inserting images from Media manager.

djcaptpln880
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 215
Joined: Mon Jul 26, 2021 9:32 am

Re: Caption under photos in article?

Post by djcaptpln880 » Wed Dec 13, 2023 7:47 pm

ok thanks.. seems way to complicated on this end ..

Tried all the editors and so far ARK seems the best and has caption but it does not show up in the code..

User avatar
ManuelVoileux
Joomla! Intern
Joomla! Intern
Posts: 70
Joined: Sun Nov 24, 2013 8:24 am
Location: France
Contact:

Re: Caption under photos in article?

Post by ManuelVoileux » Wed Dec 13, 2023 10:14 pm

Webdongle wrote:
Wed Dec 13, 2023 12:20 am
Their demo site is broken
This link is OK https://up.lomart.fr/demo/action-image-gallery
and this one as well https://voileux.org/2023-voileux-catalisa-scillies.html

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44152
Joined: Sat Apr 05, 2008 9:58 pm

Re: Caption under photos in article?

Post by Webdongle » Wed Dec 13, 2023 10:24 pm

You do not have the required permissions to view the files attached to this post.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2970
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Caption under photos in article?

Post by SharkyKZ » Fri Dec 15, 2023 7:20 am

djcaptpln880 wrote:
Wed Dec 13, 2023 7:47 pm
ok thanks.. seems way to complicated on this end ..

Tried all the editors and so far ARK seems the best and has caption but it does not show up in the code..
Which part did you find complicated? How are you inserting the images? When using Media manager or TinyMCE, the option to insert caption is right there.
You do not have the required permissions to view the files attached to this post.


Post Reply

Return to “Extensions for Joomla! 4.x”