Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1357407

    Hello,

    I would like to change the button link in Layerslider with the string translation for the second language.
    I have already tried the following tutorials for this:

    Übersetzung der Startseite

    Layer slider button url does not appear for translation

    Unfortunately without success …
    I hope you can help me!

    Best regards
    Michael

    #1357785

    Hey Michael,
    Thank you for your patience, as I understand your question you want to change the link url based on language, is the button text already translating or does this also need to change?
    The first idea that I have is to create two layer buttons with different custom IDs in the layerslider and use css to show/hide based on language.
    The second idea is to use javascript to change the button url based on language.
    Please link to a test page that we can examine to assist with which of these two you would like to try, that is if you want to try the css option, please create two buttons with different IDs in the layerslider and like to the page so we can test it in each language.
    If you want to try using javascript with one button because WPML is translating the button text fine, then add a custom IDs to the button and link to the page so we can examine.

    Best regards,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.