Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Basic CSS Customization | Customizing Pages and Content
Introduction to Shopify Development

bookBasic CSS Customization

メニューを表示するにはスワイプしてください

Basic CSS changes allow you to customize the look and feel of your Shopify store beyond the theme's default settings. In this chapter, you'll learn how to create and import a new CSS file to your theme for styling changes.

Steps

  1. Creating a New CSS File: go to Online Store > Themes > Edit Code and open the Assets folder. Click Add a new asset, choose Create a blank file, and name it custom.css;
  2. Adding CSS Code: open your custom.css file and add this code to change fonts and adjust the heading styles:
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
    h2 {
     font-family: 'Poppins', sans-serif;
     font-size: 42px;
     font-weight: 600;
     color: #000;
    }
    
  3. Linking Your CSS File to Your Theme: go to the layout/theme.liquid file and add the following line before the closing </head> tag to link your new CSS file:
    {{ 'custom.css' | asset_url | stylesheet_tag }}
    
  4. Previewing Your Changes: save your changes and preview your store to see how the font and heading styles have been updated.

1. Where do you create a new CSS file in Shopify?

2. What does the CSS code provided change?

3. How do you import a custom CSS file into your Shopify theme?

4. Why is it useful to make custom CSS changes?

5. What is the purpose of importing the Poppins font in the example?

question mark

Where do you create a new CSS file in Shopify?

正しい答えを選んでください

question mark

What does the CSS code provided change?

正しい答えを選んでください

question mark

How do you import a custom CSS file into your Shopify theme?

正しい答えを選んでください

question mark

Why is it useful to make custom CSS changes?

正しい答えを選んでください

question mark

What is the purpose of importing the Poppins font in the example?

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  3

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 2.  3
some-alt