Dawn - Product Page Accordion Border Styling

Solved

Dawn - Product Page Accordion Border Styling

IllIlIl1
Excursionist
35 0 10

 

  • How can I hide the bottom border of the last accordion row for mobile view (750px and below)?

  • How can I apply a border-radius to the top-left and top-right corners of the first accordion row, and the bottom-left and bottom-right corners of the last accordion row?

 

Reference Image for second point:  https://imgur.com/a/jRKXSF5

 

Link: https://a93e87-e7.myshopify.com/products/test-product

Keycode: teoree

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
8446 2018 2478

This is an accepted solution.

Hi @IllIlIl1 

check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

#shopify-section-template--23282462523702__main .accordion:not(:last-of-type) {
    border-bottom: 0;
}

#ProductInfo-template--23282462523702__main > div:nth-child(9) {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.product__accordion.accordion:last-of-type {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.product__accordion.accordion summary {
    padding-left: 1rem;
    padding-right: 1rem;
}

 

And Save. 

Result:

Made4uoRibe_1-1727278878019.png

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 2 (2)

namphan
Shopify Partner
1336 164 199

Hi @IllIlIl1,

- Remove border: Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:

.product__info-container .accordion+.accordion {
    border-top: none !important;
}

- Add border radius: please send me the code of main-product.liquid file, I will check and guide it

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com

Made4uo-Ribe
Shopify Partner
8446 2018 2478

This is an accepted solution.

Hi @IllIlIl1 

check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

#shopify-section-template--23282462523702__main .accordion:not(:last-of-type) {
    border-bottom: 0;
}

#ProductInfo-template--23282462523702__main > div:nth-child(9) {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.product__accordion.accordion:last-of-type {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.product__accordion.accordion summary {
    padding-left: 1rem;
    padding-right: 1rem;
}

 

And Save. 

Result:

Made4uoRibe_1-1727278878019.png

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.