Hi, I have one page which I created with pages. Is there some code that made my page look same way as all legal terms (like Refund Policy, etc.)? It is aligned like to the center with block? I can align it only to the center and that´s not what I´m looking for. Maybe code align-text: justify. Problem is that I don´t know where to put code to be suited with specific page.
How I want it:
Page I want to be aligned like picture above: https://four-leggedpets.com/pages/policy-for-covid-19
Password is leden2021
Thank you for helping me
Solved! Go to the solution
Please add the following code at the bottom of your assets/theme.css file.
.template-page .rte{
max-width: 65ch;
margin: 0 auto;
}
Hope this helps.
Thanks!
This code works, but for all custom pages. I'm trying to understand the code and I created a new one, but I changed it from page into page.alternate, name inside codes is page.alternate.liquid. I thought
that .template-page.alternate can work, but id didn´t.
Which code works for this specific page only (https://four-leggedpets.com/pages/policy-for-covid-19)?
Thank you
Then as for the template-page. We will have to put id with the body tag.
Layout/theme.liquid
Find
<body class="template-{{ request.page_type | handle }}" >
replace with
<body id="{{ page_title | handle }}" class="template-{{ request.page_type | handle }}" >
After that body tag will have the id of the page then we can create CSS classes on it for that specific page. Please do this then we will move further.
This is an accepted solution.
You can use this like below. Put this code for this page only.
body#policy-for-covid-19 .rte{
max-width: 65ch;
margin: 0 auto;
}
Now, this should work. The above id with the body is unique for each page.
Thanks!
User | Count |
---|---|
413 | |
200 | |
145 | |
57 | |
43 |