Streaming live at 10am (PST)

How to do captions under the 25 images in CMS

Thanks a lot! :smiling_face_with_three_hearts:
Where shall I place this code snippet? There where we put the Rich text? I would like to see a video tutorial of this, so I can see how to do this.

I don’t think you need a video tutorial for that.

Just mouseover the page where you have the rich text stuff with the images to reveal the settings icon, then go to the bottom and paste in the code in the bottom custom code field.


It don’t work for me?

Another option is to display the Alt text from the multi-reference field images in a caption.

I think it is better you got my share link so you see my problem.

my sharelink

Link isn’t working… 404 page.

Ok. Strange
I have here a new one

Where did you try to add the code?

I put it here

Seems like jquery isn’t initialized. Try this (remember to add some images to the rich text field):

<script src=""></script>
<link rel="stylesheet" href="" />
<script src=""></script>

$(document).ready(function() {
$('.w-richtext figure img').each(function() {
  $(this).parent().css({cursor: 'pointer'}).attr('data-fancybox', 'gallery').attr('data-src', this.src);

  clickContent    : false

it won’t work either?
here is the link (I have put 3 images below the code.

Here is a new share link

Code below uses class names for the elements as per screen shot.

let items = Array.from(document.getElementsByClassName('multi-image-div'));
items.forEach( function(item) {
	item.getElementsByClassName('label')[0].innerText = item.getElementsByClassName('multi-image')[0].alt;

Code goes into the page settings as per earlier screenshots, not into the rich text field.

And it works just fine here?

I can’t figure this out?
my Navigator is like this now:

1: You need a rich text field somewhere that will contain the images you wish to show. Like you already have. That’s all you need. No image sections or anything like that. This rich text field can have text as well, no problem.

2: Code goes into the page settings. Not a code embed on the page. In my earlier comment you can see where that is.

3: Add images to the rich text field. On your live site you’ve already done this and they are clickable and in a gallery: Listafólk

So I have to put the code here, - and 50 times?