R
R
Ruslan2019-10-02 23:08:48
HTML
Ruslan, 2019-10-02 23:08:48

How to write alt and title for images in 1s-Bitrix?

Hello!
There is a catalog of cars, I go into it
5d95024136d65735157264.jpeg
Let's say the first audi, I go into editing it. For each field with alt and title I prescribe templates for them
5d9502f1e0194571711106.jpeg
. They are prescribed, but only for the list with cars on the site. That is, for previews of pictures from the list.
But when I go to the card of each car, there alt and title for a reduced copy of the picture and for an enlarged (detailed) copy are empty.
Although I write the same fields in the card for each car in the same way.
Tell me how to register them for cards too? Maybe edit the php template file somewhere? But where exactly? Prompt at least where to dig. Where to look?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
I'm Yoda, 2019-10-03
@Anadi

Perhaps in the catalog template the alt and title tags are empty, without the code that displays the text for the tags.

Y
Yaroslav Alexandrov, 2019-10-03
@alexyarik

In the standard product detail page template, the alt tag is filled in and displayed.
Most likely you have a custom template to which data is not transferred to the alt tag.
Switch to edit mode and find the alt tag in the template code, add the output of the necessary data to it, similar to the system template.
Where is your template shown in the picture5d959e5fd110e378787980.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question