Installed mega menu - error - "Liquid Error"

Here is the error code:
”Liquid error (snippets/header-mega-menu-extended line 50): Could not find asset snippets/icon-caret.liquid”

So, 1) what is “icon-caret.liquid” I’m assuming it’s a reference to an icon to use somewhere in the headers? I can’t find any answer to this in my google search or on this community.

  1. Do I actually need this? I found a thread that suggested commenting it out, or removing the reference altogether, but I’m not sure if I need it or not.

  2. From what I’m seeing, it says to look for the file it’s referencing “icon-caret.liquid” under the snippets section, but this file does not exist. It does not exist in any of my previous copies of the Dawn Theme, and some of those are before the version update as well, so… I don’t know where this is even coming from and I did not delete it. And I can’t find another copy to put in from any of my other backup themes?

  3. Is it a file that’s been renamed? can I just change the reference?

My shop is alotofwhimsy.com

Clicking it toggles my dropdown off and on (shows pictures from the collections, versus no drop down, see attached screenshots for difference and error code). The error code shows up on ALL of my pages.

I’ve included the code for the file with the error - it’s line 50, but I included screenshots for that whole section of code.

Hi @alotofwhimsy,

Please go to Snippets and add icon-caret.liquid file. Refer icon-caret.liquid code:

<svg class="icon icon-caret" viewBox="0 0 10 6"><path fill="currentColor" fill-rule="evenodd" d="M9.354.646a.5.5 0 0 0-.708 0L5 4.293 1.354.646a.5.5 0 0 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708" clip-rule="evenodd"/></svg>

Dawn had these icon snippets till 15.0.1.

Then , they’ve moved these to Assets and started using inline_asset_content filter:

So you may either create a snippet file, or do it new way.

thank you so much, this worked!

thank you for your help! I tried this, but it all pasted on one line and I don’t have enough coding skill to know where to split it up. Much appreciated!

Hi @alotofwhimsy,

You don’t need to split it, it’s just an svg file, and the code can be on 1 line. So you just need to copy and paste.

You can also change the code from render declaration to inline_asset_content.

Anyway it’s solved, congratulations :blush:

I did copy and paste it exactly as it was there and it didn’t resolve it :slight_smile: It’s probably on my end, but I made the file then copied the code into it and it didn’t resolve the issue. So I’m sure I either didn’t get you the right information or I managed to mangle the copy and paste somehow. But I do thank you for all of your help. It’s soooo appreciated!

Hi @alotofwhimsy,

So did you solve it?

Yes, Tim’s method solved it. Thank you. :slight_smile:

Thanks for letting us know.
We happy that it works for you.