Solved

How to Increase Width of Legal / Policy Pages? The container is very narrow.

kchart
Tourist
7 0 1

Hello, I have reviewed 2 other posts about this topic but didn't find a solution. Please help! I would like to expand the width of the policy / legal pages. They are very narrow. I am not using a shopify theme. All my css is in theme.css.liquid. Below is a picture of what my page looks like. Here is the html that is driving that section. Any idea of what I can put into the css file that will fix this so the page content is at 100%?

 

<div class="tt-breadcrumb">
<div class="container">
<ul>
<li><a href="/">Home</a></li><li>Shipping policy</li></ul>
</div>
</div>
<div id="tt-pageContent" class="show_unavailable_variants">
<div class="shopify-policy__container">
<div class="shopify-policy__title">
<h1>Shipping policy</h1>
</div>

 

shipping-policy.png

Accepted Solution (1)
Wahab_Ahmad
Shopify Partner
773 114 201

This is an accepted solution.

@kchart 

 

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste below code at bottom of file

 

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

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: wahabahmadghori@gmail.com

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Chat on WhatsApp .
Feel free to contact me Email : wahabahmadghori@gmail.com |
Buy Me A Coffee

View solution in original post

Replies 14 (14)

Wahab_Ahmad
Shopify Partner
773 114 201

Hello @kchart,

                           share store link for a better understanding of the problem. 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Chat on WhatsApp .
Feel free to contact me Email : wahabahmadghori@gmail.com |
Buy Me A Coffee
kchart
Tourist
7 0 1
Wahab_Ahmad
Shopify Partner
773 114 201

This is an accepted solution.

@kchart 

 

1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss->paste below code at bottom of file

 

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

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: wahabahmadghori@gmail.com

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Chat on WhatsApp .
Feel free to contact me Email : wahabahmadghori@gmail.com |
Buy Me A Coffee
kchart
Tourist
7 0 1

Natasha-Saed
Shopify Partner
411 45 70

I guess its the !important code that makes it work

If my solution helped you don't forget to accept it to help others.
===================================================================
And if you really like my support share a cup of coffee with me paypal.me/freemindsint
madari21
Excursionist
24 0 3

Thank you for the instant fix. This worked!!! 🙂

Meer
Visitor
1 0 1

Hi, I would like to add more policies and want to create maybe a new page template that matches the margins and title spacing of the policy templates already provided. How do I do this? 

Gvantsa
Visitor
1 0 1

Thank you for your help, @Wahab_Ahmad

How is it possible to expand the width of the legal pages in mobile version of our sites? it worked for the desktop version but I would like to customize the mobile version too.

Thank you

S_Patrick
Tourist
8 0 4

Good question and I am still looking for this solution for my mobile version too.

Natasha-Saed
Shopify Partner
411 45 70

Perfect worked out like a charm thanks a lot

If my solution helped you don't forget to accept it to help others.
===================================================================
And if you really like my support share a cup of coffee with me paypal.me/freemindsint
adamparker
Visitor
1 0 0

Hi @Wahab_Ahmad  I am also facing the same issue, tried your code but it is not working out - could you please guide?

Store URL:

https://fmhglobalstore.com/policies/privacy-policy

Natasha-Saed
Shopify Partner
411 45 70

It's split into two columns 6 x 6 this is why it will not work is there a specific reason why make two columns or its in the default of your theme ?

 

If my solution helped you don't forget to accept it to help others.
===================================================================
And if you really like my support share a cup of coffee with me paypal.me/freemindsint
maxikaya
Shopify Partner
3 0 0

I am using a dawn theme, and that may be why I had to paste the code into <base.css>.

It took a while for me to figure out where to paste it, but the hard part is obviously the code itself.

I played a little with the numbers too and decided that, "60%" to fit better with my banner.

 

Thank you very much. 

Dirk
Shopify Staff
2217 247 506

Hey, @maxikaya 

I understand you are looking for a coding solution to adjust the padding of your legal page. However, I'm confident one of our Shopify experts would be able to accomplish this at a reasonable price.
 
Just wanted to share this as an option in case you are unable to find a coding solution in your thread.

 

If there is anything else I can help you with, please let me know.

Dirk | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog