Where to add code in Shopify theme without using liquid?

Where to add code in Shopify theme without using liquid?

yusrh
Visitor
2 0 0

hello, please i have a question about where can i add a code in shopify theme without theme liquid 

thank you 

Replies 3 (3)

Blair
Shopify Staff
2036 264 239

Hey @yusrh,

 

Thank you for reaching out to the Community! I'm happy to provide some assistance with making edits to your theme, to get this resolved. To ensure I'm fully understanding, it is code that is looking to be added/removed within the current theme for your online shop correct? 

 

If so, you can head into Online Store > Themes > Actions > Edit Code to make any necessary changes to the theme. As most of the files that make up a theme contain liquid, a basic understanding will be required to complete customizations. I recommend checking out our Editing Theme Code documentation for more information on making edits to your theme. 

 

Alternatively, you can look to hiring one of our Shopify Experts for assistance with theme customizations. Our experts are trusted third-party agencies or freelancers that offer various services to help build your business. For more information you can check out our Expert Marketplace

 

Please let me know if you have any other questions editing code, as I'm happy to help! 

Blair | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

yusrh
Visitor
2 0 0

thank you @Blair  for answering. i did add the code in theme liquid but i was asking if there is an other place or page like theme liquid where i can add it and do the same effect for all the website like what happen if i add it in theme liquid. 

 

ps: this code is for hiding the best selling product for that my competitors can't see it

Blair
Shopify Staff
2036 264 239

Hi @yusrh,

 

No problem at all, as I was happy to assist. If coding was added to the themes liquid, this would ensure that products are hidden to competitors.

 

To provide some additional context however, code customizations can only be completed within the shops theme as opposed to elsewhere within the admin. There may be an app available within the Shopify App Store that can help achieve this as an alternative. 

 

Please let me know if you have any other concerns. 

Blair | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog