Alternate Caption Composition for Mobile Layout
-
Hi guys,
I've been trying to figure out something for ages that I just can't quite solve.
I'm looking to have alternate caption styles for Desktop and Mobile layout on my carousel addon.
The difference being, on Desktop I would like the captions to exist on a single line, whilst on Mobile to be displayed across two separate lines.
Can anyone help me out with this super simple but frustrating issue?...
See images attached for reference.
-
Dear @jbenfield96
There could a be a few ways to go about it, however making the most of Lay Theme's built in Media Query would be advised.
Could you post a link to your website with the Captions in question? 🔍
You could also add some simple jQuery in > Lay Options > Custom CSS & HTML. The jQuery would say "Hey at a certain browser width - take this text and replace it with this" making use of the break <br> tag.
https://stackoverflow.com/questions/1309452/how-to-replace-innerhtml-of-a-div-using-jquery
Talk soon & best wishes 🌝
Richard
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