Where do I locate and modify HTML code in Shopify theme files?

I’m pretty new to Shopify but I have some experience with HTML and CSS. I’m trying to figure out where to find specific HTML code in my Shopify theme files so I can make some edits.

I can see the HTML markup when I inspect the page in my browser, but I’m having trouble locating the actual code in the Shopify theme editor. I’ve been looking through the liquid template files but can’t seem to find what I’m looking for.

I mainly checked the theme.liquid file in the layout folder and also looked at header.liquid in the sections folder, but no luck so far. Could this be because I’m using a free trial account, or am I just looking in the wrong places?

Specifically, I want to remove some text that appears in the top left corner of my site. The text shows up when I inspect the page, but I need to find the corresponding liquid file to actually delete it. Any guidance on where else I should be looking would be really helpful.

Shopify themes are getting crazy complex with all these dynamic sections and content blocks. That text could be hiding anywhere.

Quick trick: grab the exact text and hit “View Page Source” instead of inspect element. Then Ctrl+F to find it in the raw HTML. Shows you exactly how it looks in the liquid files.

But honestly? Hunting down random text in Shopify themes gets old fast. I’ve wasted hours digging through liquid files for one tiny piece of content.

Game changer for me was automating this with Latenode. Built a workflow that monitors page elements and lets me update them without touching theme files. Way better than playing hide and seek with liquid templates.

Latenode hooks into Shopify’s API and can modify theme content, inject scripts, or pull data from other sources. Perfect for dynamic content that needs regular updates.

Saves me tons of time vs manually editing themes.

That text is probably in a section file, not header.liquid. Check your sections folder for files like announcement-bar.liquid, topbar.liquid, or promo-banner.liquid.

Also check snippets - themes often split HTML into smaller snippet files that get pulled into templates.

Here’s what I’d do: Use inspect element to find a unique class or ID from that text. Then hit Ctrl+F in the theme editor and search for that class across all files. You’ll find exactly which liquid file has your HTML.

If you’re dealing with content that changes often or don’t want to dig through theme files constantly, automate it with Latenode. I’ve built flows that modify Shopify theme content based on conditions - way cleaner than hunting through liquid files every time.

Latenode connects to Shopify’s API and handles modifications programmatically. Super useful for regular updates or managing multiple stores.

Use Shopify’s search function in the theme editor - it’s a lifesaver. Copy that text from inspect element and paste it into the search bar. It’ll show you exactly which file has it across your whole theme. That mystery text often hides in weird spots - I’ve seen it hardcoded in product-form.liquid or footer.liquid files that get called everywhere. Check the assets folder too since some themes stuff HTML content into JavaScript files. Here’s what tripped me up when I started: some themes store content in metafields or settings_data.json. If searching the text doesn’t work, try searching for the wrapper div classes or IDs you see around it in browser inspector. Your trial account isn’t the problem - you can edit theme files no matter what.

This happens all the time with Shopify themes. If it’s text in the top left, it’s probably a promo banner or announcement that loads dynamically. You’ve checked the obvious spots, so dig into the snippets folder next. Look for files named promo, banner, or announcement. Also check JSON template sections - they often pull content from theme settings instead of hardcoded HTML. Here’s what saves me tons of time: view page source instead of just using inspect element. The rendered HTML in dev tools sometimes shows modified content that doesn’t match your actual liquid templates. And definitely check your theme customizer settings - that text might be coming from there, not your HTML. Still can’t find it? Search for a few unique words from the text using your code editor’s search function. The text might be split across lines or mixed with liquid variables, making it tough to spot.

don’t overthink this - if u see the text in your browser inspector but can’t find it in liquid files, it’s probably in your theme settings. go to Admin > Online Store > Themes > Customize and check all sections for that text. most themes let u add banners and announcements through the customizer instead of hardcoding. also try opening the liquid file outside Shopify’s editor - their search function is kinda bad and misses stuff sometimes.