You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user asked if it would be possible to change the way SVG icons are displayed so they can be easily styled with CSS. I'll add his suggestion below.
After discovering that SVG’s are inserted as src attribute in an <img>, I looked into how I could get it inline and found that editing the includes/front.php and changing one line will do the trick – then you can style how you will with CSS and colours / SVG elements can be targeted for interaction.
The line 492 is the one to edit:
<img src="%s" class="%s" aria-hidden="true" alt="%s"%s%s%s/>',
Changed to:
file_get_contents(esc_url( wp_get_attachment_url( $meta['icon'] ) )),
Will output the raw SVG from the media library.
He also asked if it would be possible to add additional measurement units.
What problem does this address?
A user asked if it would be possible to change the way SVG icons are displayed so they can be easily styled with CSS. I'll add his suggestion below.
He also asked if it would be possible to add additional measurement units.
Suggested here.
What is your proposed solution?
No response
The text was updated successfully, but these errors were encountered: