KG87 Posted August 12, 2020 Share Posted August 12, 2020 Site URL: https://star-fox-slbe.squarespace.com/portfolio/aesop-store-openings Hi there, Would anyone know what css to use to create a clickthrough gallery in slideshow? At the moment there are arrows but i'd prefer to have it so you just click on the right side for 'next' and left side for 'previous'. Thanks in advance, Link to comment
tuanphan Posted August 12, 2020 Share Posted August 12, 2020 What is access password? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
derricksrandomviews Posted August 12, 2020 Share Posted August 12, 2020 I have played around with this myself and so far found that if I hide the controls then you can't get anywhere but forward by clicking. So with that discovery I decided to change the look with code. This code is adjustable so if you wish to try it here it is. It goes into custom css you can change the color, the size of the arrows, and make the background round if you wish, notice the radius control. .sqs-gallery-block-slideshow .sqs-gallery-controls .next, .sqs-gallery-block-slideshow .sqs-gallery-controls .previous { background: none; /*removes the original background behind the arrows*/ } .sqs-gallery-block-slideshow .sqs-gallery-controls .next::before, .sqs-gallery-block-slideshow .sqs-gallery-controls .previous::before { background: white; color: black; font-size: 1.5em; /*this changes the size of the arrows*/ padding: 10px; border-radius: 30%; /*remove this is you don't want the background rounded*/ } Link to comment
caravaggio Posted May 26, 2021 Share Posted May 26, 2021 On 8/12/2020 at 10:09 PM, derricksrandomviews said: I have played around with this myself and so far found that if I hide the controls then you can't get anywhere but forward by clicking. So with that discovery I decided to change the look with code. This code is adjustable so if you wish to try it here it is. It goes into custom css you can change the color, the size of the arrows, and make the background round if you wish, notice the radius control. .sqs-gallery-block-slideshow .sqs-gallery-controls .next, .sqs-gallery-block-slideshow .sqs-gallery-controls .previous { background: none; /*removes the original background behind the arrows*/ } .sqs-gallery-block-slideshow .sqs-gallery-controls .next::before, .sqs-gallery-block-slideshow .sqs-gallery-controls .previous::before { background: white; color: black; font-size: 1.5em; /*this changes the size of the arrows*/ padding: 10px; border-radius: 30%; /*remove this is you don't want the background rounded*/ } Thank you! This is extremely helpful! By the way, is there a way to position the arrows outside (or nearly) the block so that it doesn't overlay the images? Link to comment
derricksrandomviews Posted May 26, 2021 Share Posted May 26, 2021 I am sure there is, but I will have to get back to you with the exact snippet. Hopefully someone will answer this faster than I can. Link to comment
derricksrandomviews Posted May 27, 2021 Share Posted May 27, 2021 I played around with the code I posted and found that the padding line, the smaller the number the more the arrows move to the edges of the image frame as does the arrow background also, so you could end up with a half circle so to speak. caravaggio and tuanphan 2 Link to comment
sunnieday Posted November 7, 2022 Share Posted November 7, 2022 Hey there Derrick, I'm currently looking for this feature on my own site and was wondering whether you could take a look at my page and help me tweak the custom code above so that I can click the slideshow image instead of the arrows? Would be hugely appreciated. Thank you!https://bulldog-tarantula-l54y.squarespace.com/ password:sb 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