skip to Main Content

I want to show the menu like when i am on a category then i can show more than one image of category.In admin it only provide to upload one image so what is best way to do to show more than one image for a category.Thanks in advance.

2

Answers


  1. There is no best way. There are as many creative ways as you can think of though to just get the job done. One example is to use Assets. With a file naming scheme such as the handle of your collection, you could load alternate images with some scheme like:

    {{ 'collection-handle1' | asset_url }}     
    {{ 'collection-handle2' | asset_url }}
    {{ 'collection-handle3' | asset_url }}
    

    Till you are happy. Or you could save all your collection (category) images in a Metafield resource, and thus render them from that.

    There are two solutions for you. Best is a loaded term. You’re on your own there.

    Login or Signup to reply.
  2. You can use collection metafields to add images URL :

    • Install this chrome extension

    • Host your images in your store (settings => files)

    • Get the URL of image and store in a collection metafields (chose a namespace and a key)

    • You can then access the URL in liquid in the collection object {{ collection.metafields.NAMESPACE.KEY }}

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search