Skip to content

Instantly share code, notes, and snippets.

@zakhardage
Last active October 18, 2022 23:23
Show Gist options
  • Save zakhardage/9a84bee3a398d8aeb44a to your computer and use it in GitHub Desktop.
Save zakhardage/9a84bee3a398d8aeb44a to your computer and use it in GitHub Desktop.
@JacksonHowell
Copy link

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
Copy link

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

@eballeste
Copy link

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