Nicolette Posted November 22, 2023 Share Posted November 22, 2023 (edited) Hello, amazing circle community, I have a few questions about styling a slideshow gallery. 1. I am trying to style the gallery to match my design please see attached a screenshot of what I am trying to achieve. ( I will be doing a few slideshow galleries like this so I want to target all of them) 2. I have styled the caption on my site but I am not sure if the code I used is the best as its caption has been cut off a little at the top, I wanted to make the text bigger but it slices the top of the caption off when I do that, is there any way to fix this, please see screenshot attached. I had managed to get to sit to the left of the slideshow at the bottom too but the code doesn't seem to work properly, I just want it to align left of the image below it like in my original design. 3. Is there a way to get two different fonts in the caption from the slideshow gallery? I changed the caption font with code but I'm not sure if I am able to achieve the two fonts like in my design. 4. I want to upload my own SVG icon for the slideshow gallery arrows but I also wanted to just have the right arrow and remove the left arrow altogether. Is this possible if so does anyone know the code to upload my own icon and remove the left arrow altogether? 5. I want the arrow to sit below the image on the right side like in my design but I have not managed to make that work with custom code. Please see the screenshots for reference. Site: https://gracelillianlee.squarespace.com/ My site password is: Tr0pic@l Edited November 22, 2023 by Nicolette Link to comment
Nicolette Posted November 23, 2023 Author Share Posted November 23, 2023 Does anyone have any ideas? 😅 Link to comment
Solution tuanphan Posted November 26, 2023 Solution Share Posted November 26, 2023 To move arrows to bottom + show 1 arrow only, add this code to Website > Website Tools > Custom CSS /* Move slideshow arrow */ .sqs-gallery-controls .next { top: unset !important; margin-top: 0 !important; background: transparent !important; } .sqs-gallery-controls .previous { display: none !important; } To change arrow style, use this CSS code div.sqs-gallery-controls a.next { background-image: url(https://cdn.pixabay.com/photo/2023/10/23/17/53/bird-8336583_1280.jpg) !important; background-size: contain !important; background-repeat: no-repeat !important; width: 70px; height: 30px; margin-top: 10px !important; } a.next:before { visibility: hidden; } Replace Pixabay with your long arrow icon url Two font type in Caption Can you add Image Caption? We can test code 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
Nicolette Posted December 1, 2023 Author Share Posted December 1, 2023 Hi Tuan, Thank you so much for getting back to me, I ended up placing the slideshow with the new fluid engine so I was able to place the caption as a text block instead of using the caption within the slideshow. Your code worked thank you so much, the arrow is sitting a little high up and I need it to align with the text on the left, how would I move it down more? Thanks for all your help. Link to comment
Nicolette Posted December 1, 2023 Author Share Posted December 1, 2023 Hi Tuan I had one more question, I realise I needed to make one of the slideshow gallery arrows white as that sections background is black. I was trying to target just that one slideshow, I used the below code using the block ID to try target it but I may have got the code wrong, I also tried to apply a fill to change the colour of the SVG. This is what I used, that didn't work, do you know what code I should use if i just wanted to change one of the slideshow galleries arrows? #block-2e660832ac58afc0f334.sqs-gallery-controls a.next { background-image: url(https://gracelillianlee.squarespace.com/s/Grace-lillan-lee-arrow.svg) !important; fill: #F7F6EC !important; background-size: contain !important; background-repeat: no-repeat !important; width: 70px; height: 30px; margin-top: 10px !important; } Thank you Link to comment
Nicolette Posted December 1, 2023 Author Share Posted December 1, 2023 37 minutes ago, Nicolette said: Hi Tuan, Thank you so much for getting back to me, I ended up placing the slideshow with the new fluid engine so I was able to place the caption as a text block instead of using the caption within the slideshow. Your code worked thank you so much, the arrow is sitting a little high up and I need it to align with the text on the left, how would I move it down more? Thanks for all your help. I fixed this with editing the margin height, Thank you. Link to comment
Nicolette Posted December 1, 2023 Author Share Posted December 1, 2023 Hi Tuan, Sorry there is another thing, The code for the arrow worked but the code only works when I have the CSS panel open in Squarespace, It only seems to be with the SVG icon replacement part of the code. As soon as I exit out of the CSS menu and refresh the browser the arrows disappear all together. This the code, I'm not sure if I have broken it somewhere which is why its not working after I close the CSS editor. //Change arrow div.sqs-gallery-controls a.next { background-image: url(https://gracelillianlee.squarespace.com/s/Grace-lillan-lee-arrow.svg) !important; background-size: contain !important; background-repeat: no-repeat !important; width: 70px; height: 30px; margin-top: 31px !important; } a.next:before { visibility: hidden; } Thanks sorry for the spam. Link to comment
tuanphan Posted December 3, 2023 Share Posted December 3, 2023 On 12/1/2023 at 8:03 PM, Nicolette said: Hi Tuan, Sorry there is another thing, The code for the arrow worked but the code only works when I have the CSS panel open in Squarespace, It only seems to be with the SVG icon replacement part of the code. As soon as I exit out of the CSS menu and refresh the browser the arrows disappear all together. This the code, I'm not sure if I have broken it somewhere which is why its not working after I close the CSS editor. //Change arrow div.sqs-gallery-controls a.next { background-image: url(https://gracelillianlee.squarespace.com/s/Grace-lillan-lee-arrow.svg) !important; background-size: contain !important; background-repeat: no-repeat !important; width: 70px; height: 30px; margin-top: 31px !important; } a.next:before { visibility: hidden; } Thanks sorry for the spam. Sometimes uploaded files won't work on Trial Plan 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
Nicolette Posted December 3, 2023 Author Share Posted December 3, 2023 Thank you, I upgraded my site and that worked. I wanted to target just one of the slideshow galleries, so I could use a fill on the SVG arrow to make it white, I tried to use this code but it didn't work. Is there something missing? #block-2e660832ac58afc0f334.sqs-gallery-controls a.next { fill: #F7F6EC !important; } Link to comment
tuanphan Posted December 4, 2023 Share Posted December 4, 2023 21 hours ago, Nicolette said: Thank you, I upgraded my site and that worked. I wanted to target just one of the slideshow galleries, so I could use a fill on the SVG arrow to make it white, I tried to use this code but it didn't work. Is there something missing? #block-2e660832ac58afc0f334.sqs-gallery-controls a.next { fill: #F7F6EC !important; } Need a space here #block-2e660832ac58afc0f334 .sqs-gallery-controls a.next { fill: #F7F6EC !important; } 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
Nicolette Posted December 5, 2023 Author Share Posted December 5, 2023 Thanks for getting back to me, sorry I did have it with the space originally, it doesn't work either way. I ended up replacing that code and added in a light arrow to replace for that block, see the code below. Thanks for all your help. #block-2e660832ac58afc0f334 .sqs-gallery-controls a.next { background-image: url(https://gracelillianlee.squarespace.com/s/right-light.svg) !important; background-size: contain !important; background-repeat: no-repeat !important; width: 70px; height: 30px; margin-top: 10px !important; } But it didn't work tuanphan 1 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