Change banner link from JS to HTML
-
Hi!
I have a problem with translation plugin, because Woodmart banners links are inside JS and not in <a></a>
tags. Screenshot attached.
Why do banner’s link is inside JS and not inside html <a></a>
tag? Is it possible to change this?
My translation plugin doesnt recognize JS links and on click doesnt automatically redirect users to their selected language subdir, like this plugin does with usual html links. So this is a problem.
Regards,
Arturs
Attachments:
You must be
logged in to view attached files.
Hello,
The banner element has a complicated HTML structure with a lot of div
and other tags. It is not a correct way to use <a>
tag and wrap the whole banner so that is why we use the JS event there.
Kind Regards
Can’t you give tag <a>
to banner’s image?
Can you help me solve this? Link as a part of JS code is not good for me.
We can’t wrap the image only since the banner has a mask element with text and it will overlap the image with link and the link will not work.