Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Addons
  3. Alternate Caption Composition for Mobile Layout

Alternate Caption Composition for Mobile Layout

Scheduled Pinned Locked Moved Addons
2 Posts 2 Posters 120 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jbenfield96
    wrote on last edited by
    #1

    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.

    Screen Shot 2021-08-01 at 20.44.27.png Screen Shot 2021-08-01 at 20.44.20.png

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      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://laytheme.com/documentation.html#custom-javascript

      https://stackoverflow.com/questions/1309452/how-to-replace-innerhtml-of-a-div-using-jquery

      https://www.w3schools.com/tags/tag_br.asp


      Talk soon & best wishes šŸŒ
      Richard
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      I also code custom websites or custom Lay features.
      šŸ’æ Email me here: šŸ’æ
      info@laytheme.com

      Before you post:
      1. When using a WordPress Cache plugin, disable it or clear your cache.
      2. Update Lay Theme and all Lay Theme Addons
      3. Disable all Plugins
      4. 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:
      1. Post a link to where the problem is
      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
      Online Users
      C
      craigfeldspar
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Search