Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@JacksonHowell

This comment has been minimized.

Copy link

@JacksonHowell JacksonHowell commented Jun 16, 2015

Hi Zach,
I found this gist after google "shopify related articles". I tried using this script, and it appeared to be pulling the correct articles within the script tags. However, nothing was outputted into the html. Is there something simple that I'm failing to notice, do I need to add some liquid to output the js into html? Thanks for your time!

@eballeste

This comment has been minimized.

Copy link

@eballeste eballeste commented Jun 20, 2016

On line 29
{{ article_img | img_tag }}
should be
{{ article_img }}

@eballeste

This comment has been minimized.

Copy link

@eballeste eballeste commented Jun 20, 2016

On line 36
fisherYates(products);
should be
fisherYates(articles);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment