Your own CSS in the shop
Small tweaks with a big effect – without taking the shop apart.
What it's about
- The shop's own CSS loads after the template, so its rules win.
- You add to your own file; custom.css stays, and what's already there stays.
- Example: one line that moves the footer from the window edge to the end of the page.
- Small rules, colors from the :root variables, check after updates.
Transcript
Click a timestamp to jump to that point in the video.
- On the left, the footer lies across the second item – it sticks to the bottom of the window. On the right, it sits at the end of the page, where it belongs. The only change is one line of CSS.
- Every shop has its own CSS file. The shop loads it after the template, so its rules win. That's where the design belongs – not as styles inside the content.
- In Template settings, open CSS declaration. The file custom.css belongs to the system – leave it alone. On your own file, click Edit.
- Add the new rule at the end, with a comment so you can find it again. Whatever is already there stays.
- Save.
- Good to know: stick to small rules with a clear purpose. Take colors from the variables of the color settings instead of repeating values. And this rule depends on how the template is built – after an update, check that the footer is still in the right place.
- Here's how it looks live.
- One line of CSS – and the shop looks tidy.
Also in: Setting up a shop