-
Notifications
You must be signed in to change notification settings - Fork 34
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
SVG height and width attributes #6
Labels
help wanted
Extra attention is needed
Milestone
Comments
jeffpaul
added
type:question
Further information is requested.
type:enhancement
New feature or request.
labels
Aug 31, 2021
Thanks for the info @jeremymoore. I think this could be a great enhancement moving forward, especially taking CLS into account now. @jeffpaul this could work by wrapping lines 471-476 in a conditional that checks for the We should also take into account that |
jeffpaul
added
help wanted
Extra attention is needed
and removed
type:question
Further information is requested.
labels
Aug 31, 2021
4 tasks
4 tasks
github-project-automation
bot
moved this from Code Review
to Done
in Open Source Practice
Nov 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @darylldoyle
What are your thoughts on trying to assign the default height and width attributes based on the image size used in the
wp_get_attachment_image()
function?For example, when I use the above in my template with your plugin activated my SVG is loaded with the height and width attributes set to the images default size. I, however, would like the height and width to be
78
x78
.I ended up using the following filter in my theme to work around the issue... but i think this would be worth considering incorporating into the plugin.
The text was updated successfully, but these errors were encountered: