Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

brandon

Circle Member
  • Content Count

    2,212
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by brandon

  1. Something like this should work: .gallery-lightbox-item img { width: 100% !important; object-fit: contain; }
  2. @noemipossible11 and @douglasmcg: I'll try to come up with something for you in the next week or so. I've got some ideas. @lisagravy: Can you provide a link to the page in question?
  3. @gabmartinez7: Try adding the JS via a markdown block in the footer of your site.
  4. Hi @totaljoy. It looks like that gallery block was added using a third-party extension and not using 7.1 galleries, so this thread and the code here won't apply. I'd recommend contacting the maker.
  5. On that page, it looks to me like captions are showing, not filenames @gabmartinez7. It seems you got that sorted. As to the overlapping of the description over the image, that's a matter of adjusting the CSS. I'd use a combination of font-size, line-height, and flexbox to get things looking better. I might also override the overall height of that gallery (currently set at 75vh). If that doesn't give you enough to get things the way you want, send me a direct message.
  6. Hi @JanelleNine. Here's a bit of code you can use to get you started. If you add other galleries to the the site and only want to target this one, you'll want to adapt the CSS a bit. .gallery-fullscreen-slideshow { height: auto !important; } .gallery-fullscreen-slideshow-list { max-height: 100vh; } Let me know how it goes for you. EDIT 7/22/2020: In some cases, for mobile, you may also need something like @media screen and (max-width: 767px) { .gallery-fullscreen-slideshow[data-height="L"] { height: auto !important; } .gallery-fullscreen-slideshow-item i
  7. No problem @Charlest93. Don't forget to post a like/thank on helpful posts.
  8. Ah, sorry about @Charlest93. I forgot you had already sent a link earlier in this post. Also, your English is much better than my French! What you want can be accomplished with CSS alone. However, it does require an understanding of it, and being comfortable using your browser's web inspector to identify elements and get them looking like you want. I've written some additional CSS you can add that should help you get a start on it. However, while you can certainly add the following CSS after what you already have, it'd be better to review it and edit your existing CSS to minimize ove
  9. @gabmartinez7: If you're seeing a filename, that is likely because you have not entered description text. See the third bullet point under "JavaScript" in the original answer. However, if that's not the cause, then could you provide a link to the page in question? @Charlest93: I'm not sure what you mean by "get the same codes". Having said that, I did take another look at the CSS for the "Slideshow" gallery type where thumbnails are displayed, and I realized that things weren't displaying quite right on mobile. So I made a small adjustment. You could try using the updated CSS in my o
  10. @Charlest93 : I see you figured it out. Also, if a post helps you out, don't forget to post a like/thanks on it.
  11. Hi @Charlest93. Here's what I think you're looking for: .gallery-item-description { text-align: center; pointer-events: none; }
  12. This is an update to let you know that I've added just a couple lines of CSS to fix the issue with the lightbox caption delay/lag issue. The lines are added at the end of the CSS in the original post. They are: transition: opacity 0.1s ease-out; .gallery-lightbox-item[data-in=false] .gallery-item-description { opacity: 0; } Special note to those who mentioned the issue: @kinapark , @IvanOB , @ed.design , @JohnS123
  13. Glad to hear it @JanBrick and @luxpacifica. Don't forget to like the original post if you didn't already.
  14. Hey @Meeeee. Paul can certainly clarify if/when he can, but at the bottom of the page it says: "The wishlist cannot be used in conjunction with the cart/checkout. It completely replaces the cart and is designed for websites that do not take payments online (sales or donations)."
  15. Hi @j03ie. It is necessary to add both the CSS and the JavaScript. Take another look at the instructions and be sure you follow them fully, both parts. If you get it up and running, changing how the captions display is a matter of editing the CSS to your liking.
  16. Thanks for the message @kinapark. I'm aware of the issue. I just have to find the time to fix it and, as you know, it's a bit rough out there at the moment. I do hope to tackle this soon.
  17. Hi @etgilbert. Well, it's been a long time, so I don't recall if I considered or attempted other approaches. But "how it affected the outcome...", was to create colored boxes behind the images. Perhaps you mean "affected the outcome compared to some other approach" such as using pseudo elements or JavaScript. Or perhaps compared to doing something with absolute positioning and breaking the relationship between the wrapper and the contents (that could work as well). You might even be able to do it with box-shadow or background positioning. There are probably multiple ways to solve this; I
  18. Hi Peter. If you are referring to image caption/descriptions added using this code, then it's not currently possible. However, it is something I'd like to add. Perhaps I'll do that soon.
  19. Hi @glidinsk. Thanks for taking the time to post here. I appreciate hearing that it's helped out. Also, don't forget to like/upvote the original post when you can.
  20. Hi @EllieC. I definitely want to get back to that...I can see the issue. Unfortunately it might be awhile. But I'll post back if/when I get to it.
  21. @EllieC: You mentioned that you do not have an account that allows adding custom code. Therefore you cannot add it via a code block either. That is why I mentioned the Markdown block (not the code block).
  22. @EllieC: You'll need to add both the JavaScript and the CSS components (both parts are required). The JavaScript adds the captions. The CSS styles how they display. In some cases, you can add the JavaScript to a Markdown block on the page in question. That might not work due to how the script is initialized, but you can give it a try.
  23. Hi @goodwincreative. The function receives a string as its only parameter. That means what you pass must be a string, wrapped in quotes. You can then use single quotes inside the string. Like this: addGalleryItemDescriptions("section[data-section-id='5e584f84750bff750e72e2a8']"); Also, consider using the "<>" button in the toolbar when posting code on the forums. That makes it easier to read and check your code (and helps assure that the forum doesn't mess with it in some way when posting).
  24. I think the answer to that would depend on two things: How long before Squarespace releases this caption/description feature officially. Will Squarespace allow captions underneat, not over top, of the images if/when they do release the feature. I wish I knew the answer to those, @ClareLaLou, but I honestly cannot even guess!
  25. Hi @ClareLaLou. Having spent a few minutes poking around, I think that gets a little too complicated, and not something I can do with the time I have. Because Squarespace has it setup so that images are typically matching in height, I'd have to do a bit more study on CSS grids, then test quite a lot to ensure there were no side-effects for the various galleries. So, I'm afraid, there's nothing I can do about it at the moment.
×
×
  • Create New...