CTA button for multilingual
-
Re: call to action In the top bar
Armin, is there a solution to use this with Polylang? I tried this, it works, but is sme
for both languages... -
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/2but 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
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com