Jump to content

Banner Slideshow Card Image

Recommended Posts

  • Replies 7
  • Views 832
  • Created
  • Last Reply

Top Posters In This Topic

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

sdfsdfsdfsdf.PNG

Can you share the link of image/logo you want to add?

And all items have the same icon image, don't they?

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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
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?

image.thumb.png.50d441bd9e86913167179bc2e7d00e56.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 11 months later...

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:

image.thumb.png.4ae5a71e63d8ad6bc8da4cd0a73ee98f.png

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:

 

image.thumb.png.8a77170aa4e8641c34ed5f428f1f31e8.png

 

Thanks, as always! I've used a lot of your code over the years and I appreciate you!

 

Link to comment
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:

image.thumb.png.4ae5a71e63d8ad6bc8da4cd0a73ee98f.png

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:

 

image.thumb.png.8a77170aa4e8641c34ed5f428f1f31e8.png

 

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

image.thumb.png.0103a70f790b4539e47e87cafb1b75b9.png

I don't see this image on /speaking page

image.thumb.png.8a77170aa4e8641c34ed5f428f1f31e8.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.