Score:0

Breakpoints in custom theme not showing in the "group breakpoints" field

cn flag

I'm having a problem that i simply can't find how to resolve it. I've created a custom theme based on the "claro" from drupal core. Then I've installed the modules Breakpoints + Responsive Image.

I've renamed the theme as "nescau", and created a new breakpoints file. "nescau.breakpoints.yml". I've created 2 breakpoints: "nescau.mobile", and "nescau.desktop" to test the module.

The problem is when I go this url:

http://nescaumeeg/admin/config/media/responsive-image-style/add

so I can add image styles for the breakpoints, the nescau.breakpoints doesn't show in the field "group".

problem example

In the image example, there should be a "nescau" inside that field, so I can choose an image style for each breakpoint.

I've tried searching on the web, but found nothing. I'll be glad if someone could help me.

EDIT

I'm using a custom theme that has the base theme as "claro" from core.

This is the breakpoints file.

nescau.mobile:
  label: mobile
  mediaQuery: '(min-width: 0px)'
  weight: 0
  multipliers:
    - 1x
    - 2x
nescau.desktop:
  label: desktop
  mediaQuery: 'all and (min-width: 800px)'
  weight: 1
  multipliers:
    - 1x
    - 2x
ve flag
Hi Jean, could you please also post your `nescau.breakpoints.yml` contents here. Also: You did clear the cache, right?
Jean da Silva avatar
cn flag
Thanks for the response. I've cleared caches already, but nothing. I've also edited my post with the contents from the breakpoints file.
leymannx avatar
ne flag
And you sure enabled the new theme already and set it as default?
leymannx avatar
ne flag
Can you please try having the multipliers in one single line, like `- '1x, 2x'`?
ve flag
the breakpoints file syntax is correct (only the mobile mediaQuery should be changed to `(max-width: 799px)` in order to avoid overlaps) - as @leymannx mentioned I also think it could be, that the nescau theme is not enabled in the side.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.