How to add files to Code editor?

MiuMiu237
Explorer
118 1 24

Hi guys,

I have a question.

I have created new page in my store? How can I add files to Code editor so I can edit the code (adding 'class'/'id', customizing css), because they don't have their own 'class/id' so if I fixed them in Base.css, they would affect other elements.

 

Screenshot.png

 

 

 

 

 

Reply 1 (1)

magenest
Shopify Partner
118 4 10

Hey there MiuMiu237,

 

You can refer to these steps:

- Create file css,js in the Assest folder
- In the file liquid, link to file css, js by command:
<script src="{{ 'setup.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'setup.css' | asset_url }}" defer="defer"></script>

Magenest - One-stop Digital Solution Provider
- Don’t forget to drop a thumbs-up and Mark it as a Solution if you find our response useful
- Elevate your online business with our Shopify experts and professional designers