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. General Discussion
  3. same caption for image and lightbox

same caption for image and lightbox

Scheduled Pinned Locked Moved General Discussion
8 Posts 2 Posters 115 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.
  • N Offline
    N Offline
    Nzagamba
    wrote on Apr 4, 2025, 11:54 AM last edited by
    #1

    I'm picking up on this post a few years ago. I'm looking for a simple solution to show the same caption of and image in the lightbox view, without having to type it twice for every image. Is there meanwhile a way to do this without custom coding? Or what would a custom code look like, to have the exact same image caption for both main image and light box image?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote 29 days ago last edited by
      #2

      Screenshot 2025-04-09 at 19.42.13.png

      there is only this in the lightbox addon settings.

      however, you're talking about the text you set as a caption for the image right?
      like here:

      Screenshot 2025-04-09 at 19.43.17.png

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nzagamba
        wrote 29 days ago last edited by Nzagamba 29 days ago
        #3

        Yes, I saw the Caption options in the lightbox plugin, but none of the options (None, Image File Caption, Image File Title) solves my problem.
        I want to have the same caption for the main image and the lightbox view.

        Screenshot 2025-04-10 at 12.36.21.png

        Here's a screenshot of what I see. There are two fields for image caption. One extra one for Lightbox. can I merge them, so I don't need to copy paste ever caption twice?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote 28 days ago last edited by
          #4

          ok i understand. will try to code a solution for this! maybe i can do it tomorrow and then it will be part of the next lay theme update, lets see

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote 28 days ago last edited by
            #5

            Screenshot 2025-04-11 at 08.59.04.png

            ok i will release a lightbox addon update and a lay theme update.
            then if you update both, you will have this new setting

            1 Reply Last reply
            0
            • N Offline
              N Offline
              Nzagamba
              wrote 27 days ago last edited by
              #6

              You are amazing, @arminunruh !!!

              1 Reply Last reply
              0
              • N Offline
                N Offline
                Nzagamba
                wrote 21 days ago last edited by
                #7

                I just tested the new feature. I was wondering, if it is somehow possible to set two different textformats, one for the general image caption and the other one for the lightbox caption? I saw that in the lightbox settings, I can set a textformat, but it doesn't have an influence, in combination with the gridder element caption. That would be wonderful to have an option for this.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  arminunruh
                  Global Moderator
                  wrote 21 days ago last edited by
                  #8

                  Hey, there is no option for this because it just takes the HTML of the caption and inside the HTML of the caption, the text format is already set. However, you could use custom CSS. Can you please Google how to use Google Chrome Web Inspector?

                  For example, in Chrome, you could right-click the lightbox caption and then click "Inspect"

                  Here you can see the CSS and CSS selectors that are used. Now you can write your own CSS to change the font family, font size, and more. Put it in Lay Options > Custom CSS and HTML.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes

                  1/8

                  Apr 4, 2025, 11:54 AM


                  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
                  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.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search