The following code is changing the background colour of ALL pages, but I'd like to change only the background colour of one page called "astoryonlineTTL" - where is the mistake?
.template-page .page-container,.template-astoryonline .page-container {
background-color: #ffffe4;
}
All answers and corrections appreciated.
Thank you.
Solved! Go to the solution
Hello @Skoory,
Hello @oscprofessional ,
Would you kindly write the code?
Thank you.
Do you want to apply on below page
I didn't see ".template-astoryonline" this class on that page.
Please do one thing
1. Go to Online Store->Theme->Edit code
2. Layout->theme.liquid->open this file
Search this code
<body class="template-{{ request.page_type | handle }}">
Replace with
<body id="{{ page_title | handle }}" class="template-{{ request.page_type | handle }}">
Because of it there is specific id for that page
after implement this please tell me
Hi @oscprofessional ,
So, to be clear:
I'm going to find the first piece of code and then delete it and substitute in its place the second piece of code, right?
And, what will happen next, and what did you want to know?
Don't have to delete anything.
You have to add only this
id="{{ page_title | handle }}"
Bacause of it there is specific id on page.After that we will implement backgroundcolor.So that this background color won't affect on other pages
Applied it to a back up copy.
So, what do I do next?
The name of the template is:
page.astoryonlineTTL.liquid
It is an amended contact form or page.
Ok?
User | Count |
---|---|
746 | |
142 | |
102 | |
64 | |
46 |