Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Add a hover effect to the collection button (Dawn theme)

Solved

Add a hover effect to the collection button (Dawn theme)

dreamtechzone_5
Shopify Partner
400 1 68

Hello Everyone!

I am using the Shopify Dawn theme. How to add a hover effect to the collection button? Is it possible? Thank you.

Store: https://puppies-paws-shop.myshopify.com/
Password: Admin

 

Screenshot 2024-05-18 012006.png

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2305 834 908

This is an accepted solution.

Hi @dreamtechzone_5, Pls try again with this code: 

body:has(.collection-list) h3.card__heading:hover {
    background-color: black !important;
    border: 1px solid #9C9405 !important;
}

body:has(.collection-list) card__heading {
   transition: all 0.4s;
   border: 1px solid transparent !important;
}

body:has(.collection-list) h3.card__heading.h5 {
   border: 1px solid transparent !important;
}

body:has(.collection-list) h3.card__heading.h5:hover {
    background-color: transparent !important;
    border: 1px solid transparent !important;
}

 

Here is result: 

BSSTechVenture_0-1716017392505.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 5 (5)

BSSCommerce-HDL
Shopify Partner
2305 834 908

Hi @dreamtechzone_5

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file base.css,  theme.css or styles.css

Step 3: Insert the below code at the bottom of the file -> Save

 

body:has(.collection-list) .card__heading:hover {
    background-color: black !important;
}

body:has(.collection-list) .card__heading {
   transition: all 0.4s;
}

 

 

Here is result: 

BSSTechVenture_0-1716015981333.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

dreamtechzone_5
Shopify Partner
400 1 68

When I paste the code, when I hover over the product title, it turns black. Can a border be added to the hover button of the collection? I want the border color to be #9C9405

Screenshot (58).png

BSSCommerce-HDL
Shopify Partner
2305 834 908

This is an accepted solution.

Hi @dreamtechzone_5, Pls try again with this code: 

body:has(.collection-list) h3.card__heading:hover {
    background-color: black !important;
    border: 1px solid #9C9405 !important;
}

body:has(.collection-list) card__heading {
   transition: all 0.4s;
   border: 1px solid transparent !important;
}

body:has(.collection-list) h3.card__heading.h5 {
   border: 1px solid transparent !important;
}

body:has(.collection-list) h3.card__heading.h5:hover {
    background-color: transparent !important;
    border: 1px solid transparent !important;
}

 

Here is result: 

BSSTechVenture_0-1716017392505.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

dreamtechzone_5
Shopify Partner
400 1 68

Wow Great. It worked. Thank you very much.

dreamtechzone_5
Shopify Partner
400 1 68

I have added the social share icon to the product page through coding. I want to keep the icons inside the button. I have added the image below of how I want the button to be placed. And please check my social share is working? Is it possible? Thank you.

Store: https://puppies-paws-shop.myshopify.com/products/50pcs-dog-bowtie-pet-supplies-small-dog-cat-bow-tie...
Password: Admin

Social Share Button

Screenshot 2024-03-25 210915.png