Adjust Page width & margin Dawn Theme

Solved

Adjust Page width & margin Dawn Theme

Fukuro
Tourist
6 1 2

Hi everyone, 

I am a beginner in using shopify and building websites and currently struggle getting the widht right. 

I tried putting the code in the end of the base.css section first, however it ended up working well only for some pages while other still were messed up. Also when doing this, the margin in mobile-view were to big.

 

 

 

.page-width {
    max-width: 100% !important;
}

 

 

 

It seems like something is off somewhere and I might have messed it up myself tbh.

I would greatly appreciate your help with this.

Fukuro_0-1723361962600.png

 

Website adress is https://fukuroandfriends.com/ 

PW: HLD2K31

 

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2079 738 929

This is an accepted solution.

You can try following these steps to fix on mobile view:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

 

 

 

<style>
    @media screen and (max-width: 750px) {
     .page-width {
        padding: 0 0!important;
    }
    .image-with-text__content.image-with-text__content--top.image-with-text__content--desktop-left.image-with-text__content--mobile-left.image-with-text__content--adapt.content-container.background-transparent {
        padding: 10px 10px !important;
border: 0!important;
    }
    .image-with-text__text-item.grid__item {
        padding: 0 0!important;
border: 0!important;
    }
    .image-with-text__content.image-with-text__content--top.image-with-text__content--desktop-left.image-with-text__content--mobile-left.image-with-text__content--small.content-container.background-transparent{
        padding: 10px 10px!important;
border: 0!important;
    }
    .image-with-text__content.image-with-text__content--middle.image-with-text__content--desktop-left.image-with-text__content--mobile-left.image-with-text__content--adapt.content-container.background-transparent {
        padding: 10px 10px!important;
border: 0!important;
    }

    .image-with-text__text-item {
            padding: 10px 10px!important;
    }
.banner__box.content-container {
    padding: 0 0!important;
}
.image-with-text__media {
border: 0!important;
}
    }
</style>

 

 

 

Here is result:

BSSCommerceHDL_1-1723375089462.pngBSSCommerceHDL_2-1723375111062.png

 

If the space still too big, you can decrease "10px" from code above to smaller.

Hope this can help you, If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 7 (7)

BSSCommerce-HDL
Shopify Partner
2079 738 929

Hi @Fukuro 

Its seem to be fixed right?

BSSCommerceHDL_1-1723364709638.png

BSSCommerceHDL_2-1723364729757.png

 

Do you have any problem else?

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Fukuro
Tourist
6 1 2

No I have undone the css code, because it messed everything up. So now it is basically as it was before. But if you check the other pages, you will see that there the margins are too big on mobile view. 

Fukuro_0-1723367492464.png

 

So basically the challenge is this:

1. I want every page to have the same width

2. On mobile view, all pages should be like this: 

Fukuro_1-1723367593668.png

 

BSSCommerce-HDL
Shopify Partner
2079 738 929

This is an accepted solution.

You can try following these steps to fix on mobile view:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

 

 

 

<style>
    @media screen and (max-width: 750px) {
     .page-width {
        padding: 0 0!important;
    }
    .image-with-text__content.image-with-text__content--top.image-with-text__content--desktop-left.image-with-text__content--mobile-left.image-with-text__content--adapt.content-container.background-transparent {
        padding: 10px 10px !important;
border: 0!important;
    }
    .image-with-text__text-item.grid__item {
        padding: 0 0!important;
border: 0!important;
    }
    .image-with-text__content.image-with-text__content--top.image-with-text__content--desktop-left.image-with-text__content--mobile-left.image-with-text__content--small.content-container.background-transparent{
        padding: 10px 10px!important;
border: 0!important;
    }
    .image-with-text__content.image-with-text__content--middle.image-with-text__content--desktop-left.image-with-text__content--mobile-left.image-with-text__content--adapt.content-container.background-transparent {
        padding: 10px 10px!important;
border: 0!important;
    }

    .image-with-text__text-item {
            padding: 10px 10px!important;
    }
.banner__box.content-container {
    padding: 0 0!important;
}
.image-with-text__media {
border: 0!important;
}
    }
</style>

 

 

 

Here is result:

BSSCommerceHDL_1-1723375089462.pngBSSCommerceHDL_2-1723375111062.png

 

If the space still too big, you can decrease "10px" from code above to smaller.

Hope this can help you, If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Fukuro
Tourist
6 1 2

Hi!

That worked out well, thank you so much! I also added the code in the base.css

.page-width {
    max-width: 100% !important;
}

 

However, I still have the issue that the pages are all misaligned:

Ideally all pages should be like the about us page and contet should start after the red line:

Fukuro_2-1723375698911.png
However this is how it looks on the other pages:

contact page

Fukuro_1-1723375631708.png

 


Start page:

Fukuro_3-1723375909894.png

 

And also the other page (Kollektion) and its sub-pages.

What do I need to fix, to have it all aligned perfectly? Thanks in advance!

 

BSSCommerce-HDL
Shopify Partner
2079 738 929

You can try add this code before tag "</style>" as previous:

 

@media screen and (min-width: 780px) {
 .content-for-layout.focus-none {
    padding: 0 122px 0 122px!important
}

 

Tell me if that work or you need anything else

BSSCommerceHDL_0-1723379579718.png

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Fukuro
Tourist
6 1 2

Thanks, I think the confusion came with the box itself having a different configuration. I will check again and see if I can get it fixed with playing around with custom css in the editor. Thanks!

BSSCommerce-HDL
Shopify Partner
2079 738 929

You're welcome. Have a good day!

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now