How to find code?

How to find code?

JapanFoodGrocer
Shopify Partner
11 0 1

I am having trouble finding some code to try to see if I can edit it, but I tried every solution that I can think of and cannot find any part of this code that is showing up in the developer section or F12, under the element part i try to find the word "country" and it shows 4 times, however I can't find it in my Shopify code, can anyone help me understand why I am not able to find any part of this code anywhere in my Shopify code? Thank you.

JapanFoodGrocer_0-1737561374101.png

 

Replies 4 (4)

PaulNewton
Shopify Partner
7746 679 1617

Hi @JapanFoodGrocer 👋 It's probably auto inserted by either content_for_header as part of another process/app, or part of the theme in theme.liquid or relevant section/snippet file using the country object or similar localization objects and features

https://shopify.dev/docs/api/liquid/objects/country#country-referencing-the-country-object-directly 

https://shopify.dev/docs/api/liquid/objects/localization 

https://shopify.dev/docs/storefronts/themes/markets/multiple-currencies-languages

 

Of course your not actually explaining what the GOAL is, so make sure this isn't an xy problem https://xyproblem.info/ 

 

If you need debugging or theme customization then contact me for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

 

 

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


JapanFoodGrocer
Shopify Partner
11 0 1

Thanks for replying however I am not looking a probably type answer, I would like to know exactly where the problem is at 

LizHoang
Shopify Partner
1251 159 195

Hi JapanFoodGrocer

 

The code you are looking for might be rendered from a third-party app or the theme's JS files. It will load when you access the store, so you might not find it in the theme code. You can contact the theme support to help you locate that code file more easily.

Best,
LizHoang

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

DaisyVo
Shopify Partner
4460 499 594

Hi @JapanFoodGrocer ,

The code they are looking for might come from a third-party app, so it may not be present in the theme code. You should check with the theme developer to find out where the code is located.

 

Best,
Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution