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)
  1. more than a month ago
  2. Commercial Templates
  3. # 2
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
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hello ciaran, thanks, now it works like before.

Greetings Alex
  1. more than a month ago
  2. Commercial Templates
  3. # 4
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.
  1. more than a month ago
  2. Commercial Templates
  3. # 5
  • Page :
  • 1


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