Hide caption if blank

This topic contains 5 replies, has 3 voices, and was last updated by  Naveen Giri 3 years, 12 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #543022

    Barry Joshua
    Full Member
    Post count: 83

    Hello,

    Currently, in the photos tab of a listing details page if an image has no caption entered, it uses the file name as a caption / alt-tag when expanded in the lightbox.

    This means there are many images with captions like “image-364”.

    I am trying to go through and update them but there are so many.

    This is likely wishful thinking, but is there a way to only show captions if something has been entered?

    ie
    Caption has been entered -> show on front end
    No captione entered -> don’t display any caption at all

    Thanks!

    #543029

    Kor
    Moderator
    Post count: 16516

    Hi Josh Grisdale,

    Thanks for your reply. There isn’t an option for this but I’ll forward this to a developer for a second opinion.

    #543032

    Barry Joshua
    Full Member
    Post count: 83

    That would be great as it looks unprofessional to have captions like that

    Thanks!

    #543078

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Josh,

    there is no way, for now, to hide that when the image caption is blank.
    you can hide the caption container completely using the following CSS.

    
    .lity-opened span.lity-caption-desc{
      display:none;
    }
    

    the text that we show there is an alt attribute of the image.
    SEO wise the alt attribute should not be empty, so we loading the image name.

    Regards
    Naveen

    #543155

    Barry Joshua
    Full Member
    Post count: 83

    OK, well, hope it can be a feature in the future.

    #543178

    Naveen Giri
    Moderator
    Post count: 1559

    Sure, I have created an issue for it.
    https://github.com/AyeCode/geodirectory/issues/1177

    we will update you.

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket