Quantcast
Viewing all articles
Browse latest Browse all 11091

Jason commented on Best way to showcase non-product photos on shopify for Pinterest use?

Yep - post and article are the same thing. There's a bit of work in this so if you're not sure how to code in the magic try searching the forum - others may have been down the path and posted code.

{% for article in blogs.photos.articles %}<!-- Do your magic -->
{% endfor %}

You'll need to not only loop over the articles, but also:

  • be able to loop past the 50 limit (javascript) - if you have that many posts of course.
  • extract the image from the post (liquid). There is code on the forum for that.
  • add the masonry code (javascript)
  • if you've got a responsive theme that could add some other complications.

With so many pics you may want to consider doing some smart image loading for more efficient page load. Not essential though.

 


Viewing all articles
Browse latest Browse all 11091

Trending Articles