Skip to content

Size not applied on the <source> elements #12

@LeninaCrowne

Description

@LeninaCrowne

Hi,

In the HTML of my page, the size attribute is on the but not on the elements.

It seems that getSourceAttributes() doesn't copy the sizes attribute from imgAttributes.

I made it work adding thus in my template :
'sourcesAttributes' => [
'shared' => [
'sizes' => '100px';
],
],

Did I do something wrong or is it an error with the plugin ?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions