Adding custom CSS to your theme
Last updated
Last updated
CSS (Cascading Style Sheets) is coded file that selects elements of your page and controls their presentation. Think of your custom template's HTML as the bones of your website and the CSS as the skin of your site.
Please refer this article from Shopify for Adding custom CSS to your theme: https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css
Custom CSS can be added to your entire theme that affects all pages in your online store except the Checkout page. For example, you can change the way that buttons are displayed across your entire store.
Steps:
In your Shopify admin, go to Online Store > Themes.
Find the theme that you want to edit, and then click Customize.
Click Theme settings -> CUSTOM CSS.
Add your code and click Save.
Your css will be saved in settings_data.json file
Custom CSS can also be added to a specific section of your theme. For example, you can apply a custom font size or a background color to a single section.
Steps:
In your Shopify admin, go to Online Store > Themes.
Find the theme that you want to edit, and then click Customize.
Click the section that you want to add CSS to.
At the bottom of the section properties panel, click Custom CSS.
Add your code and click Save.
Your css will be saved in index.json file