Re: Home Page Product Card **HELP**

Home Page Product Card **HELP**

Pods10101
Excursionist
33 0 10

Hello Everyone, I have a website in which on my home page, there is a product being shown and I want to center the title text and make the product image have rounded square edges. PLEASE SEE THE ATTATCHED IMAGE. Thanks!

 

MY STORE WEBSITE: www.gadget-pods.store

 

35535343.PNG

Replies 14 (14)

Markit-Themes
Shopify Partner
296 62 51

Hi Pods10101,

 

Here is css code for that:

 

.template-index .featured-product .productView-title {
text-align: center;
}
.template-index .productView-image.fit-unset .productView-img-container img:not(.zoomImg) {
border-radius: 40px;
}
.template-index .productView-thumbnail .productView-thumbnail-link {
background: none !important;
}
.template-index .productView-thumbnail .productView-thumbnail-link img {
border-radius: 10px;
}

 

Regards,

Markit-Themes

I am available for freelance work | Chat on WhatsApp.
Pods10101
Excursionist
33 0 10

Hey Thanks But, Where do I put the css code?

Markit-Themes
Shopify Partner
296 62 51

You can put the css code in the live editor -> settings -> custom code css at the last tab.

 

1.png

I am available for freelance work | Chat on WhatsApp.
Pods10101
Excursionist
33 0 10

Okay That Worked but there is one problem, you see how it says sale 35% on top of the image? I also want that to have rounded square edges

Pods10101
Excursionist
33 0 10

I also want to make the add to cart and buy now buttons with rounded square corners, how do I do that?

Markit-Themes
Shopify Partner
296 62 51

Here is css code for that:

.template-index .featured-product  button, .template-index .featured-product input { 
border-radius: 20px !important;
-webkit-border-radius: 20px !important;
-moz-border-radius: 20px !important; 
}
I am available for freelance work | Chat on WhatsApp.
Pods10101
Excursionist
33 0 10

Okay that worked but the sale thing is not rounded still

Markit-Themes
Shopify Partner
296 62 51

I can't find the sale label. Can you provide me screenshot where is located?

I am available for freelance work | Chat on WhatsApp.
Pods10101
Excursionist
33 0 10

Okay Sure Here: Capture.PNG

Markit-Themes
Shopify Partner
296 62 51

Here is css code for that:

.badge { 
border-radius: 20px !important;
-webkit-border-radius: 20px !important;
-moz-border-radius: 20px !important; 
}
I am available for freelance work | Chat on WhatsApp.

devcoders
Shopify Partner
781 97 201

Hello @Pods10101 

 

Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css.
Add the provided code at the end of the file.

 

.badge.sale-badge {
border-radius: 10px !important;
-webkit-border-radius: 10px !important;
-moz-border-radius: 10px !important;
}

 

devcoders_0-1731220814308.png

 

Shopify Developer: Helping eCommerce Stores

If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
Pods10101
Excursionist
33 0 10

Hey There, This works but, I want it to match and be together with the image as it is looking a bit akward

Pods10101
Excursionist
33 0 10

Also how do I make the sale tag the red one, its size bigger as it looks small

devcoders
Shopify Partner
781 97 201

Hello @Pods10101 


Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css.
Add the provided code at the end of the file.

 

.productView-image .productView-img-container img:not(.zoomImg) {
border-radius: 10px;
}
.halo-productBadges .badge.sale-badge {
    background: red!important;
    font-size: 15px;
}

 

 

devcoders_0-1731222354381.png

 

 



Shopify Developer: Helping eCommerce Stores

If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!