Lewyb96 Posted January 9, 2022 Share Posted January 9, 2022 Site URL: https://www.jcgolf.co.uk/ Hi, im trying to add a icon image above the title on this banner slideshow inside the card, is there a way to do it via css or html ive been trying for hours but had no luck. website is www.jcgolf.co.uk and the password is 1234. Thank you Link to comment
Beyondspace Posted January 9, 2022 Share Posted January 9, 2022 (edited) 7 hours ago, Lewyb96 said: Site URL: https://www.jcgolf.co.uk/ Hi, im trying to add a icon image above the title on this banner slideshow inside the card, is there a way to do it via css or html ive been trying for hours but had no luck. website is www.jcgolf.co.uk and the password is 1234. Thank you Can you share the link of image/logo you want to add? And all items have the same icon image, don't they? Edited January 9, 2022 by bangank36 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Lewyb96 Posted January 9, 2022 Author Share Posted January 9, 2022 1 hour ago, bangank36 said: Can you share the link of image/logo you want to add? And all items have the same icon image, don't they? The icon link would be something like https://www.dropbox.com/s/dg8iknwf373izpr/jc_golf_home_page_phase_1.png?dl=0, I’d want to change this at a later date. I want each slide’s card to have a different image if possible Link to comment
Beyondspace Posted January 9, 2022 Share Posted January 9, 2022 4 hours ago, Lewyb96 said: The icon link would be something like https://www.dropbox.com/s/dg8iknwf373izpr/jc_golf_home_page_phase_1.png?dl=0, I’d want to change this at a later date. I want each slide’s card to have a different image if possible Do you mean something like this? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Lewyb96 Posted January 9, 2022 Author Share Posted January 9, 2022 5 hours ago, bangank36 said: Do you mean something like this? Yep this is exactly what im after, could you show me how you did it please if possible. Link to comment
tuanphan Posted January 10, 2022 Share Posted January 10, 2022 Add to Design > Custom CSS /* Banner slideshow icons */ .user-items-list-item-container[data-section-id="61da160d5e8e0701b551daa5"] { li h2:before { content: ""; width: 40px; height: 40px; display: block; background-repeat: no-repeat; background-position: center center; background-size: contain; text-align: center; margin: 10px auto; } /* icon 1 */ li:nth-child(1) h2:before { background-image: url(https://cdn.pixabay.com/photo/2021/12/19/19/35/dried-up-6881798__340.jpg); } /* icon 2 */ li:nth-child(2) h2:before { background-image: url(https://cdn.pixabay.com/photo/2021/12/29/18/19/animal-6902437_960_720.jpg); } /* icon 3 */ li:nth-child(3) h2:before { background-image: url(https://cdn.pixabay.com/photo/2014/04/13/20/49/cat-323262__180.jpg); } } Replace Pixabay images with your icon 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
chantelleandercastle Posted December 13, 2022 Share Posted December 13, 2022 Great solution, @tuanphan! I've implemented the code with success, but it is applying to each slideshow across the website, and I'd like to only apply it to one. It's also leaving large spaces below the h2 content in other galleries and accordions after the 1st and 2nd item. Website URL: https://apricots-seal-6csp.squarespace.com/speaking (No password on the site, however it has a cover page with no nav at the moment. Using the /speaker url should get you to the rest of the site.) Correct page and usage: The code I used: /* Banner slideshow icons */ .user-items-list-item-container[data-section-id="63973ad77586a20269909913" { li h2:after { content: ""; width: 230px; height: 125px; display: block; background-repeat: no-repeat; background-position: center center; background-size: contain; text-align: center; margin: 10px auto; } /* icon 1 */ li:nth-child(1) h2:after { background-image: url(https://static1.squarespace.com/static/6383b4c63e5d27458802b1c8/t/639740c6281a851b32a1be9a/1670856902653/1.png); } /* icon 2 */ li:nth-child(2) h2:after { background-image: url(https://static1.squarespace.com/static/6383b4c63e5d27458802b1c8/t/639741052eedab45710d5e72/1670856965966/2.png); } } One of a few incorrect pages that I'd like to fix to remove the space and logo: Thanks, as always! I've used a lot of your code over the years and I appreciate you! Link to comment
tuanphan Posted December 17, 2022 Share Posted December 17, 2022 On 12/14/2022 at 12:59 AM, chantelleandercastle said: Great solution, @tuanphan! I've implemented the code with success, but it is applying to each slideshow across the website, and I'd like to only apply it to one. It's also leaving large spaces below the h2 content in other galleries and accordions after the 1st and 2nd item. Website URL: https://apricots-seal-6csp.squarespace.com/speaking (No password on the site, however it has a cover page with no nav at the moment. Using the /speaker url should get you to the rest of the site.) Correct page and usage: The code I used: /* Banner slideshow icons */ .user-items-list-item-container[data-section-id="63973ad77586a20269909913" { li h2:after { content: ""; width: 230px; height: 125px; display: block; background-repeat: no-repeat; background-position: center center; background-size: contain; text-align: center; margin: 10px auto; } /* icon 1 */ li:nth-child(1) h2:after { background-image: url(https://static1.squarespace.com/static/6383b4c63e5d27458802b1c8/t/639740c6281a851b32a1be9a/1670856902653/1.png); } /* icon 2 */ li:nth-child(2) h2:after { background-image: url(https://static1.squarespace.com/static/6383b4c63e5d27458802b1c8/t/639741052eedab45710d5e72/1670856965966/2.png); } } One of a few incorrect pages that I'd like to fix to remove the space and logo: Thanks, as always! I've used a lot of your code over the years and I appreciate you! Hi, Can you check the page? It looks fine to me I don't see this image on /speaking page 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment