Tom wrote: ↑Sun Sep 29, 2024 7:35 pm
The footer suffix black bar doesn't change to the colour I choose
I can change it in inspect element and achieve the colour change.
When I copy the code to my user.css file and save it nothing happens
Would help if you'd told what code you used
In any case, a quick tutorial on how we'd do it (but there is more than one way).
Guess you were using your browser Developers Tools to inspect.
You would see something in the top panel like:
Screenshot 2024-09-30 114418.png
Note the element structure, indicated by the indents, showing that the div is inside a <footer> element.
and in the bottom panel like:
Screenshot 2024-09-30 114531.png
Note the style showing background-color. This means a style of background-color with a value of #343a40 is targeted to elements assigned with the class bg-dark. Also note the !important which mean it will take importance over another similar set style.
Let's illustrate this by saving in the template /static/user.css file:
nothing will change and this is shown in Dev Tools:
Screenshot 2024-09-30 115505.png
See it struck out because the existing style has importance.
Let's edit the user.css to:
Code: Select all
.bg-dark {background-color: red!important;
It changes and the success is shown in Dev Tools:
Screenshot 2024-09-30 115726.png
However, what has been done has changed background-color to red for every element that has the class bg-dark throughout the site. OK if that's what desired but better to target with greater accuracy.
Already noted that the div is inside a <footer> element.
There's only 1 <footer> element on the site so let's specifically target elements that have class bg-dark but only if they are inside a <footer> element.
Let's edit the user.css to:
Code: Select all
footer .bg-dark {background-color: red!important;
Note the space between footer and .bg-dark which means target elements that have class bg-dark that are inside a <footer> element.
It changes and the success is shown in Dev Tools:
Screenshot 2024-09-30 120619.png
Read more:
https://phoenixcart.org/phoenixcartwiki ... _and_Color
As well as the resource links on that page.