Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Categories images not loading #291

Open
lborruto opened this issue Apr 6, 2022 · 1 comment
Open

Categories images not loading #291

lborruto opened this issue Apr 6, 2022 · 1 comment

Comments

@lborruto
Copy link

lborruto commented Apr 6, 2022

Hi, looking to get my own images working in the CategoryBanner, nothing works despite reading the instructions.
My collection.js look like this :

export default [
  {
    image: '/images/collection/1.png',
    slug: 'salle-de-bain',
    link: '/collection#salle-de-bain',
    translateRatio: 30,
    count: 3
  },
  {
    image: '/images/collection/2.png',
    slug: 'cuisine',
    link: '/collection#cuisine',
    translateRatio: 0,
    count: 3
  },
  {
    image: '/images/collection/3.png',
    slug: 'mode',
    link: '/collection#mode',
    translateRatio: 60,
    count: 2
  }
];

I double checked the spelling and path but everything seems ok. Maybe I'm doing this wrong.
Categories are also set in the Chec dashboard:

image

@Dev-Dz27
Copy link

Dev-Dz27 commented Feb 3, 2023

inside CategoryBanner.js exactly under the Link, change item.meta.image to item.assets[0].url

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants