Home Forums WoodMart support forum Change banner link from JS to HTML

Change banner link from JS to HTML

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #164686

    arturs4
    Participant

    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.
    #164701

    Artem Temos
    Keymaster

    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

    #164756

    arturs4
    Participant

    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.

    #164782

    Artem Temos
    Keymaster

    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.

Viewing 4 posts - 1 through 4 (of 4 total)