Why am I encountering a Liquid error when adding a LinkedIn icon to my footer?

Hello,

I’m trying to create a LinkedIn Icon in my footer and I keep getting this message Liquid error (sections/footer.liquid line 216): Could not find asset snippets/icon.liquidLinkedIn

The link works fine.

Here is the code I’m using, {%- render ‘icon-linkedin’ -%}

Any advice would be greatly appreciated. This is killing me trying to figure it out and I’m sure it’s right under my nose.

Hello @kadaca83

  1. Make sure the code is in a liquid file in the snippets folder
  2. Double check the file names being used, the render tag your using references “icon-linkedin” but your error indicates only the “icon”.liquid snippet is being called

Hi @kadaca83 ,

You already created the file ‘icon-linkedin’ in snippets.

If not, you need to create it first

Then copy the entire SVG code of the file and paste it here.

Hope it helps!

It worked! Thank you

1 Like