Policy Page, background and text colour change

Topic summary

A Shopify store owner seeks to change the background color to #FAF8F1 and text color to #D94F16 on policy and contact pages.

Solutions Provided:

  • Multiple approaches suggested, including adding HTML classes via theme.liquid and using CSS targeting
  • Made4uo-Ribe’s solution (marked as working) involves adding CSS code to base.css/style.css targeting .shopify-policy__container elements
  • Code includes specific styling for background, text color, padding, and max-width settings

Current Issue:

  • Initial implementation successful on desktop
  • Mobile version shows text cutoff problem: last line of content on all policy pages and contact page is being truncated
  • Made4uo-Ribe suggests the issue stems from footer padding and recommends finding/commenting out footer-related code in refund.policy file
  • Store owner unable to locate the suggested file and requests alternative solutions

Status: Partially resolved - desktop styling works, mobile display issue remains unresolved. Discussion includes screenshots demonstrating the cutoff problem.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

How do I change the background color and text colour of all policy page and contact us pages.

i want background colour: #FAF8F1

text colour: #D94F16

URL: shopcheri.co

password free

1 Like

hi

first step is to add html class to pages for this

you can add the following on theme.liquid.
Go to online store > next to themes click on three dots then edit code > under layout > theme.liquid

then insert {{ page.handle }} to <body tag so it looks like

.

Then we can add specific css to page.

Hi @shopcheri this is Qasim ready to help you.

Hello @shopcheri ,

Edit theme.liquid
search for

here just before to it add this code

{% if request.path == '/policies/privacy-policy'  
   or request.path == '/policies/shipping-policy' 
   or request.path == '/policies/contact-information' %}
   
   
{% endif %}

Regards
Guleria

Hi @shopcheri

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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:
main#MainContent:has(.shopify-policy__container) {
    background: #FAF8F1;
    max-width: 100%;
    margin-bottom: -20px;
}

.shopify-policy__body {
    max-width: 560px;
    margin: auto;
}
.shopify-policy__title h1 {
    margin-top: 0;
    padding-top: .67em;
}

.shopify-policy__container * {
    color:  #D94F16;
}

.shopify-policy__body .rte p {
    margin-bottom: 0;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

1 Like

thanks so much! that worked!

i just check the mobile version.

so the last from the refund policy, and contact us page is being cut for some reason.

is there a solution for that?

last line*

Oh, It’s from the footer padding.. As you can see on the code I provide I didnt add anything on the footer.

Try to find the file “refund.policy” you can search it

And find this line.

You can add some comment sign.

or remove it.

When I remove this is the result.

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

i cant seem to find “refund policy” anywhere

is there any other way ?

facing same issue with your code adjustment:

the last line from ALL policy sections as well contact us page is being cut off.

please suggest how tot fix this issue.

Did you already solved the issue?

THis is on my end.