Screenshot 2024-11-19 at 17.49.52.png
Screenshot 2024-11-19 at 17.50.06.png
when u use polylang, the html tag has the language code
you'd basically create the buttons as i explained here:
http://laythemeforum.com:4567/topic/9945/call-to-action-in-the-top-bar/2
but then create multiple buttons:
<a href="https://google.com" class="call-to-action de-button">Kaufe Hier</a> <a href="https://google.com" class="call-to-action en-button">Buy Here</a>now basically use css to show and hide buttons based on what language we're on:
.call-to-action{ display: none; } html[lang="de-DE"] .call-to-action.de-button{ display: block; } html[lang="en-EN"] .call-to-action.en-button{ display: block; }sth like that