1. colors4life
  2. Sherlock Holmes
  3. Commercial Templates
  4. Wednesday, 20 November 2024
  5.  Subscribe via email
Hello Ciaran, on my new customer website = Skylar template - the image sub-screen no longer works. in the previous site with joomla 3.10.12 everything is ok -

example: https://atab.de/index.php/standorte/84-standorte-mhkws-bayern/155-ava-augsburg.html
on the new Joomla 5.2.1 version it no longer works -
example: https://2025.atab.de/index.php/standorte.html?view=article&id=160:ava-augsburg&catid=84:standorte-bayern-mhkw

Can you help me further?

Best regards Alex
Attachments (2)
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Alex

Have you since been able to resolve this issue as both URLs appear to be now displaying the same?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
hello ciaran, no not yet. the name under the picture is not displayed = picture: Matthias Baumgartner
in Joomla 3 it works and in joomla 5 it doesn't work anymore - in the standard template of joomla it works.
Attachments (3)
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you

To amend try adding the following to the Head Custom Code field of your templates parameters (Extensions -> Template Manager -> YourTemplate -> Custom Code -> Head Custom Code)...

<script>
document.addEventListener("DOMContentLoaded", function() {
const images = document.querySelectorAll('img.caption');
images.forEach(image => {
const title = image.getAttribute('title');
if (title) {
const paragraph = document.createElement('p');
paragraph.textContent = title;
image.insertAdjacentElement('afterend', paragraph);
}
});
});
</script>


Ciaran
Accepted Answer Pending Moderation
0
Votes
Undo
Hello ciaran, thanks, now it works like before.

Greetings Alex
Accepted Answer Pending Moderation
0
Votes
Undo
one thing - before I could change the format via css class img_caption, that doesn't work anymore.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok