New Shopify Certification now available: Liquid Storefronts for Theme Developers

Adjusting The Page Width Of Policies

Solved
Rentnerundco
Tourist
8 0 5

Hello everyone,

I would like to adjust the page width of my policies because it is so small in destop mode.

Can someone help me and tell me where I can adjust this in the code.

Many thanks in advance

Accepted Solutions (2)
Made4uo-Ribe
Shopify Partner
4243 981 1195

This is an accepted solution.

Oh, Sorry im thinking the footer policy. You mean the page width right of the policy. 

Replace the code wqith tihs one. 

 

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

 

And Save. 

Result:

Made4uoRibe_0-1700063201399.png

Note: You can adjust the sizes but better to use percentage % for respoinsive screen. 

 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Made4uo-Ribe
Shopify Partner
4243 981 1195

This is an accepted solution.

Yes, Replace with this one again. This code only shows on the dektop view not on mobile. The mobile will be the same before the changes. 

 

@media only screen and (min-width: 749px){
.shopify-policy__container {
    max-width: 50% !important;
}
}

 

And Save. 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 11 (11)
Made4uo-Ribe
Shopify Partner
4243 981 1195

Hi @Rentnerundco 

Would you mind to share your Store URL website? with password if its unpublish. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Rentnerundco
Tourist
8 0 5

how can i give you anonymous access?

Made4uo-Ribe
Shopify Partner
4243 981 1195

I only need the website in your store. If its unpublish then it will requireD a password. Its the store that where the clients/costumers can see. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Made4uo-Ribe
Shopify Partner
4243 981 1195

Its a password protect. This is where you can share the password. 

Made4uoRibe_0-1700059273218.png

Click the button and it will lead you the password. 

Made4uoRibe_1-1700059303339.png

You can share it here or share privately.

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Made4uo-Ribe
Shopify Partner
4243 981 1195

Thanks for the info, check this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

#shopify-section-sections--20131492331849__28fe7be8-f4a5-4cef-a711-24458f06870a footer {
    display: flex;
    justify-content: space-around;
}

 

  • And Save. 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Rentnerundco
Tourist
8 0 5

I have placed it in the asset folder "base.css" at the end of the file.

Rentnerundco_0-1700062486109.png

But unfortunately it does not take over the policies:

Rentnerundco_1-1700062604183.png

 

Made4uo-Ribe
Shopify Partner
4243 981 1195

This is an accepted solution.

Oh, Sorry im thinking the footer policy. You mean the page width right of the policy. 

Replace the code wqith tihs one. 

 

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

 

And Save. 

Result:

Made4uoRibe_0-1700063201399.png

Note: You can adjust the sizes but better to use percentage % for respoinsive screen. 

 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Rentnerundco
Tourist
8 0 5

Perfect. That works great. But unfortunately the width also adjusts in mobile mode. There, however, everything should remain as it was before.

 

Made4uo-Ribe
Shopify Partner
4243 981 1195

This is an accepted solution.

Yes, Replace with this one again. This code only shows on the dektop view not on mobile. The mobile will be the same before the changes. 

 

@media only screen and (min-width: 749px){
.shopify-policy__container {
    max-width: 50% !important;
}
}

 

And Save. 

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Souqgadget
Visitor
1 0 0

Would you like that I help you?