Okay
  Public Ticket #1793503
Captions descriptions
Closed

Comments

  • photomassimo started the conversation

    Hi, caption for lightbox – multiple images show only filename, is there a way to show description instead?
    I do not want to show the filename of a picture but only the descriptions, that should be the caption not the name of a picture. Is this possible?

    Thank you

  • [deleted] replied

    Hi photomassimo,

    I have recorded a video to show you how to assign title/description for lightbox items:

    https://d.pr/v/i5a96D

    I hope this helps you.

  • photomassimo replied

    Hi Arlind, 

    So in order for me to not have the title of a picture there i will need to edit 150+pictures and 12 portfolios? All i want is to show the description and not the title in one of these portfolio.

    If i enable caption in the laborator lightbox option it shows the name of all the pictures in all the portfolio item. So my question is, is there a way to show caption for only one of my portfolio or is there a way to get rid of the name of the picture with CSS?

    I am using caption under the pictures not on hover.

    Thank you, i hope i explain it better now.

    Massimo

  • [deleted] replied

    Hi Massimo,

    You can add this custom CSS to only hide the title from lightbox:

    .lg-sub-html h4 {
        display: none;
    }

    Hiding the title will do the work for you I guess? Please let me know.

  • photomassimo replied

    Yes this work, i added the css and turn on caption and now i am using the caption only.

    Is there a way to put the caption directly under the picture? right now they are pretty far down from the pics.

    Thank you

    Massimo

  • photomassimo replied

    And also, just noticed, this css

    .lg-sub-html h4 {    display: none;
    }


    doesn't work for mobile, how do i apply this script to mobile version?

    Thank you again

    Massimo

  • [deleted] replied

    Hi Massimo,

    If the captions are shown on mobile, then add !important rule to property:

    .lg-sub-html h4 {
    display: none !important;
    }

    As for caption position, this is not something that is supported by Light Gallery plugin, the containers are separated and CSS cannot be used to put it below the image, I am sorry about this.

  • photomassimo replied

    Hi Arlind it still doesn't work on mobile.

    I cleared the cache and still the title of the pics are there, also i downloaded chrome for iphone to make sure but they are still there.

    .lg-sub-html h4 {    display: none !important;
    }

    this is what i added in the CSS

    Thank you

    Massimo

  •   photomassimo replied privately
  • [deleted] replied

    Hi Massimo,

    There was a CSS error in Custom CSS (a missing closing bracket } so I have managed to fix it).

    Now captions are not shown in mobile as well:


    (view large image)

  • photomassimo replied

    thank you so much Airlind.

    Best

    Massimo 

  • [deleted] replied

    Hi Massimo,

    I am glad that it worked for you.

    Will close this ticket now.