tuanphan Posted August 16, 2023 Share Posted August 16, 2023 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
M_Megan Posted August 17, 2023 Share Posted August 17, 2023 On 8/16/2023 at 1:47 AM, tuanphan said: Can you share link to page where you have problem? 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. Link to comment
tuanphan Posted August 18, 2023 Share Posted August 18, 2023 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 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
Classsssy Posted September 27, 2023 Share Posted September 27, 2023 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 Link to comment
tuanphan Posted September 27, 2023 Share Posted September 27, 2023 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? 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
melody495 Posted October 13, 2023 Share Posted October 13, 2023 (edited) 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 October 13, 2023 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
melody495 Posted October 13, 2023 Share Posted October 13, 2023 (edited) 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 Photo 2 - both "data-active" for previous and current image are "true" for 1 second Edited October 13, 2023 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
tuanphan Posted October 15, 2023 Share Posted October 15, 2023 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 Photo 2 - both "data-active" for previous and current image are "true" for 1 second You can use this new code https://forum.squarespace.com/topic/164356-lightbox-captions-only/?do=findComment&comment=646704 melody495 1 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
melody495 Posted October 16, 2023 Share Posted October 16, 2023 On 10/15/2023 at 4:48 AM, tuanphan said: You can use this new code https://forum.squarespace.com/topic/164356-lightbox-captions-only/?do=findComment&comment=646704 @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
tuanphan Posted November 4, 2023 Share Posted November 4, 2023 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
tuanphan Posted November 7, 2023 Share Posted November 7, 2023 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 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
Envela Posted November 27, 2023 Share Posted November 27, 2023 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
kate08 Posted June 12 Share Posted June 12 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! Link to comment
Thirddimensiondesigns Posted July 3 Share Posted July 3 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 Link to comment
tuanphan Posted July 4 Share Posted July 4 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
leeana Posted August 23 Share Posted August 23 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/ Beyondspace 1 Link to comment
tuanphan Posted August 27 Share Posted August 27 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment