same caption for image and lightbox
-
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?
-
-
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.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?
-
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
-
-
You are amazing, @arminunruh !!!
-
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.
-
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.
6/8
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