Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants