Prestigeーhow to place the badge under the product image?

Solved

Prestigeーhow to place the badge under the product image?

ben_yamada
Shopify Partner
29 0 7

I would like to place the badge under the product image. Can you tell me how to do this?

 

efa80228c489015721001db8f566505.png

 

↓↓↓↓

 

597ee9b74f62e1585c1c6a574a5664f.png

 

deicy.jp

password 5206

 

thank you!

Accepted Solutions (2)

exertweb
Shopify Partner
37 12 8

This is an accepted solution.

@ben_yamada 

Please added below css.

I’ve checked your product grid structure and have a simple solution for changing the color placement. Please try the code below to fix it.

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

Step 2: Search for the file theme.liquid

Step 3: Add this code before </body> tag

<style>

.product-card .product-card__info  > fieldset {
    order: -1;
}

.product-card__figure badge-list.badge-list {
    position: relative;
    order: 1;
    flex-direction: row;
    flex-wrap: wrap;
    left: 0;
}

.product-card__figure {
    display: flex;
    flex-direction: column;
}
.product-card__info {
  justify-items: flex-start;
}
.product-card__info .justify-items-center {
    justify-content: flex-start !important;
    text-align: left;
    align-items: flex-start;
    justify-items: flex-start;
}
</style>
Amit

View solution in original post

exertweb
Shopify Partner
37 12 8

This is an accepted solution.

@ben_yamada please add below code in css file.

badge-list .badge:not(.badge--sold-out) {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}
Amit

View solution in original post

Replies 7 (7)

exertweb
Shopify Partner
37 12 8

This is an accepted solution.

@ben_yamada 

Please added below css.

I’ve checked your product grid structure and have a simple solution for changing the color placement. Please try the code below to fix it.

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

Step 2: Search for the file theme.liquid

Step 3: Add this code before </body> tag

<style>

.product-card .product-card__info  > fieldset {
    order: -1;
}

.product-card__figure badge-list.badge-list {
    position: relative;
    order: 1;
    flex-direction: row;
    flex-wrap: wrap;
    left: 0;
}

.product-card__figure {
    display: flex;
    flex-direction: column;
}
.product-card__info {
  justify-items: flex-start;
}
.product-card__info .justify-items-center {
    justify-content: flex-start !important;
    text-align: left;
    align-items: flex-start;
    justify-items: flex-start;
}
</style>
Amit
ben_yamada
Shopify Partner
29 0 7

It was very helpful!!thank you!!!

ben_yamada
Shopify Partner
29 0 7

can you tell me how to change the badge style?

 

ben_yamada_0-1729343162643.png

 

 

 

ben_yamada_1-1729343180419.png

 

 

exertweb
Shopify Partner
37 12 8

This is an accepted solution.

@ben_yamada please add below code in css file.

badge-list .badge:not(.badge--sold-out) {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}
Amit
ben_yamada
Shopify Partner
29 0 7

thankyou!

exertweb
Shopify Partner
37 12 8

@ben_yamada Please also below css to resolved your product card image overlay issue.

.product-card .product-card__media {
    position: relative;
    overflow: hidden;
}
Amit

devcoders
Shopify Partner
1578 187 483

Hello @ben_yamada 

For this, structural changes will need to be made in the file. Could you please share your store access so I can check and update you?

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!