How to change the text font for a specific page

Hello,

I know how to change the text font for my page I use

@font-face {
font-family: “Roboto-Light”;
src: url(“Roboto-Light.woff2”) format(“woff2”),
url(“Roboto-Light.woff”) format(“woff”);
}

p { font-family: “Roboto-Light”!important; }

and I change the p right above to whatever the page text section is like div, p. The only problem is when I change div all the other sections on my website change to a different text when I only want two separate pages to be displaying the font.

I want this page

https://www.dankshades.com/pages/about-us

and this page

https://www.dankshades.com/pages/privacy-policy

to be a different text but it changes all the text associated with

Let me know what I can do it is the last thing I need for my website.

Hi @dank_shades ,

You can follow the instruction below:

  1. Go to Online Store->Theme->Edit code
  2. Find theme.liquid file->paste below code at the before of the file:
{% if template contains 'page' %}
    {% if page.handle == 'privacy-policy' or page.handle == 'about-us' %}
    
    {% endif %}
{% endif %}

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.

Is there a way I can see where the end of the body statement is. I can’t find it

Hi @dank_shades ,

Its content is a collection of sections. Which section you add, check that section.

Hello,

Can you do this for me I will give you 20 bucks

I looked and found some body text and put it in but it did nothing.