Trying to put black clean grid lines to frame media content & sections on the Dawn Theme homepage

Solved

Trying to put black clean grid lines to frame media content & sections on the Dawn Theme homepage

ablakart
Excursionist
26 0 2

Hi Shopify community

 

I'd like to have black clean grid lines to frame media content & sections on the Dawn Theme homepage. Something like the below or website like this one: https://eu.epokhe.co/

 

EPØKHE-Eyewear-Europe---Homepage.jpg

I hope someone can help me. I did a few tries but I haven't been able to find out how to do it !

 

Here's my current preview link: https://24a994.myshopify.com/

 

Thanks,

Antoine

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10036 2387 3013

This is an accepted solution.

Hi @ablakart 

This would take a lot of time. If it's for all the pages of the store. For the homepage. 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.section:not(.section-template--20909113770315__multirow_yG4kEU-padding, section#shopify-section-template--20909113770315__rich_text_38aqh6), .header-wrapper {
    border-bottom: 1px solid black;
}

.card__inner.color-background-2.gradient.ratio {
    border-bottom: 1px solid black;
}
.grid.product-grid.contains-card.contains-card--product {
        column-gap: 0;
}
li.grid__item {
    border-right: 1px solid black;
    border-left: 0;
    border-bottom: 0;
}
.section-template--20909113770315__rich_text_38aqh6-padding {
    padding-top: 24px;
}
.collection, .section-template--20909113770315__custom_liquid_ztkNpx-padding {
    padding-bottom: 0;
} 
.footer-block.grid__item {
    border-right: 1px solid black;
    border-left: 0;
    border-bottom: 1px solid black;
    padding: 24px;
}
footer.footer {
    padding-top: 0;
    border-top: 0;
}
.footer__content-top.page-width {
    max-width: 100%;
    padding: 0;
}
.footer__blocks-wrapper.grid {
    gap: 0;
}

 

And save. 

Result:

Made4uoRibe_0-1726087953257.pngMade4uoRibe_1-1726087978917.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
6983 1883 2300

Hey @ablakart 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.page-width-desktop {
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
}
.collection__title.title-wrapper {
    margin: 0 !important;
    padding-left: 10px !important;
}
</style>

RESULT:

Moeed_0-1726074281269.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Made4uo-Ribe
Shopify Partner
10036 2387 3013

This is an accepted solution.

Hi @ablakart 

This would take a lot of time. If it's for all the pages of the store. For the homepage. 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.section:not(.section-template--20909113770315__multirow_yG4kEU-padding, section#shopify-section-template--20909113770315__rich_text_38aqh6), .header-wrapper {
    border-bottom: 1px solid black;
}

.card__inner.color-background-2.gradient.ratio {
    border-bottom: 1px solid black;
}
.grid.product-grid.contains-card.contains-card--product {
        column-gap: 0;
}
li.grid__item {
    border-right: 1px solid black;
    border-left: 0;
    border-bottom: 0;
}
.section-template--20909113770315__rich_text_38aqh6-padding {
    padding-top: 24px;
}
.collection, .section-template--20909113770315__custom_liquid_ztkNpx-padding {
    padding-bottom: 0;
} 
.footer-block.grid__item {
    border-right: 1px solid black;
    border-left: 0;
    border-bottom: 1px solid black;
    padding: 24px;
}
footer.footer {
    padding-top: 0;
    border-top: 0;
}
.footer__content-top.page-width {
    max-width: 100%;
    padding: 0;
}
.footer__blocks-wrapper.grid {
    gap: 0;
}

 

And save. 

Result:

Made4uoRibe_0-1726087953257.pngMade4uoRibe_1-1726087978917.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
ablakart
Excursionist
26 0 2

It will require a few minor adjustments, but this a huge step ! Almost there. Thank you so much !

Made4uo-Ribe
Shopify Partner
10036 2387 3013

Welcome! It took a lot of effort, checking each section one by one. 😅

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.