Jump to content

Gallery Caption workarounds for 7.1?

Recommended Posts

On 8/13/2023 at 5:53 AM, M_Megan said:

Hello, I had gallery captions that displayed fine when I first published, then some of them disappeared the second day, now none of them show when viewing on a desktop. All seem to display on mobile. I have tried different section colors, gallery layouts, turned captions on and off, tried lightbox mode, etc. They show in edit mode, but do not show in my browser. I skimmed this entire thread and am wondering if someone can give me an update. Is the js and css code still necessary to display captions? Is there no alternative for a personal site without js capability? Thank you.

Can you share link to page where you have problem?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
20 hours ago, M_Megan said:

https://storytellermichael.com/press.  Photographer credit is in the description for each image. For me displays on mobile, but not desktop. Mixed results on other devices. Thank you.

It shows fine to me on desktop

image.thumb.png.483731bf9f966b747c316934aa76ce91.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
7 hours ago, Classsssy said:

Can someone help me out? I can't get any of the code to work. 

I want it to look like sharoncannonstudio.com. 

giraffe-apple-5m9e.squarespace.com
Password: letmein

I see you already added text under image. What is your problem now?

image.png.818cfe6c3012ffbdf702db61d0aee0a3.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 weeks later...
On 6/25/2023 at 9:26 PM, peterbjerg said:

Remove ALL code from header? 

Sure

 

(Remember.. goal is, only to show captions in Lightbox mode, and to captions change instantly when going from one image to the next. I dont mind "ease out", but I dint want delay/overlapping.)

 

Hi, did you figure this out in the end? I'm also looking to remove the "overlapping" description issue when going to the next image in a gallery section.

Or if anyone can help please?

 

Here is my site:https://tuatara-cello-3kr6.squarespace.com/config/

Password: wpGNeG9jZ5diGiM

 

Go to Artists -> Coco Capitan -> scroll down to gallery section, there are 2 images I'm testing with descriptions to show in light box.

I've used the code from brandon in the first page and modified to remove title and for description to show only in lightbox.

 

Thanks in advance!

Edited by melody495

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Nerd

💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
🧰 See the tools I use (contain affiliate links)
 Did I help? I like coffee (Thank you)

Link to comment

Re the above, did more investigation...

See photo 1 - The problem: Gallery section, lightbox. When clicking to move to the next image, the description from the previous image stays for 1 second, overlapping the new/current description. 

See photo 2 - The

data-active

tag for the previous item seems to be taking 1 second to change from "true" to "false". Although I haven't figured out why, and why this seems to only affect the description and not the image... In contrast, the data-active for the next/current item changes from "false" to "true" immediate.

Any insight would be much appreciated!

Here is my site:https://tuatara-cello-3kr6.squarespace.com/config/

Password: wpGNeG9jZ5diGiM

Photo 1

image.thumb.png.6af8b40e62ba45e8da61f174b8d24607.png

Photo 2 - both "data-active" for previous and current image are "true" for 1 second

image.png.d30f82c98223dcd3d8d042b9dca89358.png

 

 

Edited by melody495

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Nerd

💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
🧰 See the tools I use (contain affiliate links)
 Did I help? I like coffee (Thank you)

Link to comment
On 10/13/2023 at 10:29 PM, melody495 said:

Re the above, did more investigation...

See photo 1 - The problem: Gallery section, lightbox. When clicking to move to the next image, the description from the previous image stays for 1 second, overlapping the new/current description. 

See photo 2 - The

data-active

tag for the previous item seems to be taking 1 second to change from "true" to "false". Although I haven't figured out why, and why this seems to only affect the description and not the image... In contrast, the data-active for the next/current item changes from "false" to "true" immediate.

Any insight would be much appreciated!

Here is my site:https://tuatara-cello-3kr6.squarespace.com/config/

Password: wpGNeG9jZ5diGiM

Photo 1

image.thumb.png.6af8b40e62ba45e8da61f174b8d24607.png

Photo 2 - both "data-active" for previous and current image are "true" for 1 second

image.png.d30f82c98223dcd3d8d042b9dca89358.png

 

 

You can use this new code

https://forum.squarespace.com/topic/164356-lightbox-captions-only/?do=findComment&comment=646704

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 10/15/2023 at 4:48 AM, tuanphan said:

@tuanphan worked perfectly, thank you so much!

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Nerd

💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
🧰 See the tools I use (contain affiliate links)
 Did I help? I like coffee (Thank you)

Link to comment
  • 3 weeks later...
23 hours ago, honeyarrow1 said:

Hello!

I am having very similar problems:

1. I need to put 2 hyperlink-lines into a gallery caption with 2 line breaks, similar to this:

Band A
YouTube (clickable with link)
Presskit (clickable with link)

The css codes I have used do work, but won't show up after saving.

2. There is some text that is scrunched together in mobile view. It is more than one line but somehow the website puts it all on top of each other?

3. The html codes that I have used are showing up for a split second after loading the page. Is there a way to avoid this?

Any ideas? 🙂

Which code did you use? We can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 11/4/2023 at 4:18 PM, honeyarrow1 said:

I tried the <span> tag and the <br> or <br/> tag.

in the CSS section I used

@font-face {
    font-family: 'BeVietnamPro';
       src: url('https://static1.squarespace.com/static/6526edcbef608a3828beab73/t/6539155a1aac7e0450b56610/1698239834645/BeVietnamPro-Light.woff');
  }
h1 {font-family: 'BeVietnamPro';}
h2 {font-family: 'BeVietnamPro';}
h3 {font-family: 'BeVietnamPro';}
h4 {font-family: 'BeVietnamPro';}
p {font-family: 'BeVietnamPro';}

/*MULTI-LINE DESCRIPTION FOR GALLERY GRID MASONRY (7.1)*/
.gallery-caption-grid-masonry span {
  color: #898989;
  display: block;
  font-size: .7rem;
  line-height: 1.4em;
  margin-top: 10px;
}

//Gallery Caption CSS

.gallery-caption p {
  text-align: center !important; 
  font-family: BeVietnamPro !important;
  font-size: 1rem !important;
}

@media (max-width: 800px) {
    .gallery-masonry .gallery-masonry-item img {
        height: 100%!important;
        width: 100%!important;
    }
    .gallery-masonry .gallery-masonry-wrapper {
        columns: 1;
        column-gap: 0;
        padding: 10px;
        height: auto!important;
        display: block!important;
     }
    .gallery-masonry-item-wrapper {
        height: auto!important;
    }
  
    .gallery-masonry-item {
        position: relative!important;
        padding: 10px 0!important;
        transform: none!important;
        width: 100%!important;
        display: block;
       }
}

a {
text-decoration: none !important;
}

@media screen and (max-width:767px) {
/* Logo size */
.header-title-logo img, .header-title-logo a {
    left: 1000px
}
}

body {-webkit-hyphens: manual !important; -moz-hyphens: manual !important; -ms-hyphens: manual !important; hyphens: manual !important;  }

In the header section I used

<style>
  .burger-box {
    visibility: hidden;
}

.header-nav {
    position: absolute;
    right: 30px;
     top: 10px
}
  
  </style>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>

 

In the footer section I used

<script>
  $(document).ready(function(){
  $("p").each(function(){
    $(this).html($(this).text());
  });
});
</script>

<style>
a {
  text-decoration: none;
}
  </style>

You mean text break for these images? Can you keep <br/> tag? We can check it easier

image.thumb.png.b0aa484af56aae75bb00ee338c2b3f7c.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 weeks later...

Hi @brandon, thank you so much for this. It's helped a lot. I just realised I don't know how to make the box containing the description bigger (or higher) when the caption contains more text. Which line should I change in the CSS if I want the height to adjust automatically based on the length of the text? Thanks again and take care!

Link to comment
  • 6 months later...

hello! sorry if not the correct space to put this question. I am new to this. I want to make something like this: with email on the top of the image and description aligned to the side. this is a gallery section. thank you! 

Captura de ecrã 2024-06-12 121014.png

Link to comment
  • 3 weeks later...
15 hours ago, Thirddimensiondesigns said:

Hi! I recently used the code on my website for a gallery and it worked wonderfully to display the captions in the lightbox, however I am having an issue with a delay for a second where the captions overlap before the old one disappears. The link to my website is symmetry7.com

 

You can add this under your code

<style>
  p.light-caption {
    transition: unset !important;
}
</style>

I also see caption overlap together, you can consider adding a background behind to prevent this.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...

Hi all,

I too am struggling with the overlap, I tried the code from @tuanphan above but I am continuing to see them overlap. 

Ideally, my client wants the caption to appear with a dark underlay, full width of and at bottom of image, on hover or click (in Lightbox only). She wants there to be 2 lines to let you know to click or hover to show there's more info 😳  She says this is how the Lightbox functioned in Format. 

I told her at best I will be able to get them just underneath the painting, full width of image with dark underlay, but having trouble there too. Any help appreciated!

URL is https://www.jenistudios.com/

 

Link to comment
On 8/24/2024 at 12:34 AM, leeana said:

Hi all,

I too am struggling with the overlap, I tried the code from @tuanphan above but I am continuing to see them overlap. 

Ideally, my client wants the caption to appear with a dark underlay, full width of and at bottom of image, on hover or click (in Lightbox only). She wants there to be 2 lines to let you know to click or hover to show there's more info 😳  She says this is how the Lightbox functioned in Format. 

I told her at best I will be able to get them just underneath the painting, full width of image with dark underlay, but having trouble there too. Any help appreciated!

URL is https://www.jenistudios.com/

 

Which page are you referring to? It shows a logo only

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.