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

Enhancement: Add $image_classes parameter to ResponsivePics::get_picture() #70

Open
huubl opened this issue Apr 15, 2024 · 0 comments
Open

Comments

@huubl
Copy link

huubl commented Apr 15, 2024

Is your feature request related to a problem? Please describe.
The current implementation of the ResponsivePics::get_picture() function within the ResponsivePics WordPress plugin lacks the functionality to apply custom CSS classes to the individual <img> elements that it generates. This limitation makes it challenging to integrate ResponsivePics::get_picture() with Gutenberg blocks such as core/image or core/cover, which rely on specific CSS classes for styling.

Describe the solution you'd like
I propose adding an optional parameter to the ResponsivePics::get_picture() function. This new parameter would allow developers to specify CSS classes that should be applied to the individual <img> elements within the <picture> element.

Describe alternatives you've considered
Non

Additional context
Non

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

1 participant