product page design

Solved

product page design

Kathy518
Explorer
98 1 16

Hi,

I am doing the product page design.  I want to get the image like circle 10 for each corner, not a exact square. And image size become bigger.  However, I didn't find the image shape and size that I can change.  Can someone help? I think I may need the coding help. Thank you. I attached the example below. 

 

My store: https://www.trumili.com/, theme is impluse.

 

Screenshot 2024-12-11 at 10.55.55 AM.png

Accepted Solution (1)
Kyle_liu
Shopify Partner
359 46 60

This is an accepted solution.

Hi  @Kathy518

This has already removed the style of the internal border, and compared to the first reply, some new code has been added. The effect is the same as the screenshot you provided.

 

.svg-mask--splat-1 img, .svg-mask--splat-1 svg:not(.icon), .svg-mask--splat-1 video {
-webkit-mask-image: url;
mask-image: url;
}

.svg-mask {
  background: transparent !important;
    background-color: transparent;
  background-color: transparent !important;
  padding-bottom: 100% !important;
  position: relative !important;
  box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  margin: 15px;
}
.svg-mask--splat-1 img, .svg-mask--splat-1 svg:not(.icon), .svg-mask--splat-1 video {
  -webkit-mask-image: url;
  mask-image: url;
}

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee

View solution in original post

Replies 8 (8)

Kyle_liu
Shopify Partner
359 46 60

Hi  @Kathy518 

You can edit theme code:

 

1.

Kyle_liu_0-1733972172762.png

2.selected  Default product

Kyle_liu_1-1733972255095.png

Kyle_liu_2-1733972281833.png

 

3.click product section

Kyle_liu_3-1733972320464.png

4

Kyle_liu_4-1733972351480.png

5. add css code

Kyle_liu_5-1733972395015.png

 

 

.image-wrap {
  background: var(--colorSmallImageBg);
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

 

 

Adjust the value of 'border-radius'

 

 

Kyle_liu_0-1733972619274.png

 

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
Kathy518
Explorer
98 1 16

Hi Kyle,

Thank you for the response. I think the position may get wrong. I want the section "image with text" that shape become a circle 10° . I attached the screenshot below. Thank you

Screenshot 2024-12-12 at 9.46.28 AM.png

Kyle_liu
Shopify Partner
359 46 60

Still following the above steps, add this style

 

 

.svg-mask {
  background: transparent !important;
    background-color: transparent;
  background-color: transparent !important;
  padding-bottom: 100% !important;
  position: relative !important;
  box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  margin: 15px;
}

 

and the code that works is as follows:

 

 box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.5);
border-radius: 20px;
margin: 15px; 

 

 

Kyle_liu_0-1734053416606.png

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
Kathy518
Explorer
98 1 16

Hi Kyle,

Thank you for the response. I think we have some misunderstanding.   

The shape of the image I want is the one you created, a square with rounded corners. I don’t need the polygon inside. Thank you

Kyle_liu
Shopify Partner
359 46 60

 

.svg-mask {
  background: transparent !important;
    background-color: transparent;
  background-color: transparent !important;
  padding-bottom: 100% !important;
  position: relative !important;
  box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  margin: 15px;
}
.svg-mask--splat-1 img, .svg-mask--splat-1 svg:not(.icon), .svg-mask--splat-1 video {
  -webkit-mask-image: url;
  mask-image: url;
}

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
Kathy518
Explorer
98 1 16

Hi Kyle,

Thank you for helping? Is it possible to delete the inside image shape? I attached the example below. Thank you

 

VOYAGE 4+2.png

Kyle_liu
Shopify Partner
359 46 60

This is an accepted solution.

Hi  @Kathy518

This has already removed the style of the internal border, and compared to the first reply, some new code has been added. The effect is the same as the screenshot you provided.

 

.svg-mask--splat-1 img, .svg-mask--splat-1 svg:not(.icon), .svg-mask--splat-1 video {
-webkit-mask-image: url;
mask-image: url;
}

.svg-mask {
  background: transparent !important;
    background-color: transparent;
  background-color: transparent !important;
  padding-bottom: 100% !important;
  position: relative !important;
  box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  margin: 15px;
}
.svg-mask--splat-1 img, .svg-mask--splat-1 svg:not(.icon), .svg-mask--splat-1 video {
  -webkit-mask-image: url;
  mask-image: url;
}

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
Kathy518
Explorer
98 1 16

Thank you Kyle. It works!