0

I want to display an SVG image as SVG code to easily change its color using CSS. I installed the following modules: SVG image, SVG Formatter, SVG image field, SVG Image Responsive, and SVG Sanitizer. Then in the view field, I select SVG Formatter, then I chose Output SVG inline, Sanitize inline SVG, Set image dimensions.

As result, the following XML was shown in the page.

<?xml version="1.0" encoding="UTF-8"?>

How can I fix that?

These are the view settings.

view config

This is the view output.

image

  • I want to display ☑️ Exclude from display 🤨 – No Sssweat Jun 4 at 19:23
  • 1
    @NoSssweat you are right, I just tried to create a custom twig in the view {{ product_icon }} . I unchecked Exclude from display and it's work. – youssef hrizi Jun 5 at 8:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.