mrglox
Forum Replies Created
-
Forum: Plugins
In reply to: [SVG Support] Inline SVG doesn’t worksOk I makes it works with
file_get_contents($icon)and had to specifyField::make('image', 'icon', __('Icon'))->set_value_type('url').Thank you for your help !
Keep the great job 😀Forum: Plugins
In reply to: [SVG Support] Inline SVG doesn’t worksI’m using a carbon fields image field in back office with gutenberg block, that’s why I needs wp_get_attachment_image to display it.
Maybe I should try with an other methods or front end or different variable passing…
Do you have any known issues about it ? Don’t found anything about it.
Thanks again !
Forum: Plugins
In reply to: [SVG Support] Inline SVG doesn’t worksThank you for your fast answer !
Is there a problem if we use wp_get_attachment_image ?
I also tried the specified img and class with the loading but I still have the img tag.
My SVGs are optimised with sketch and SVGOMG.
Even after reupload, still
<img src="//localhost:3000/app/uploads/2019/11/computer-1.svg" class="tabs__item-img style-svg" alt="" loading="eager">