2

I want the full image of an article to use the value of an alt attribute in a title attribute, too. I have been searching everywhere and just can't find the correct file.

The file which provides the image to be shown is

/components/com_content/views/article/tmpl/default.php

When I delete this part:

<?php echo JLayoutHelper::render('joomla.content.full_image', $this->item); ?>

The image doesn't get rendered anymore.

Where can I edit the HTML of it, so I can copy&paste the variable which is used for the img alt attribute into the title attribute?

1 Answer 1

1

The file you are looking for is located in:

[ROOT_DIRECTORY]/layouts/joomla/content/full_image.php

To create an override for it, copy it and place it inside:

[ROOT_DIRECTORY]/templates/YOUR_TEMPLATE/html/layouts/joomla/content/full_image.php

There you can modify it as you like.

To learn more on layouts and overrides read here:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.