Title: Inline SVG
Last modified: March 31, 2022

---

# Inline SVG

 *  Resolved [Ari123](https://wordpress.org/support/users/ucdguy/)
 * (@ucdguy)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/inline-svg-3/)
 * Hi,
 * Thank you for a great plugin!
 * Is it possible to insert an inline SVG into a question? I would like to use a
   custom font for the text in my SVGs, but I believe this font file can be used
   by an SVG only if the SVG is inline rather than in img tags.
 * When I put the below basic SVG into the “text” mode of the editor and click save,
   most of it has disappeared when I look back at the editor.
 * <svg xmlns=”[http://www.w3.org/2000/svg&#8221](http://www.w3.org/2000/svg&#8221);
   viewBox=”0 0 277.39 52.32″><defs><style>.a{fill:#fff;stroke:#1d1d1b;stroke-miterlimit:
   10;}.b{font-size:12px;fill:#1d1d1b;font-family:MyriadPro-Regular, Myriad Pro;}
   </style></defs><line class=”a” y1=”0.5″ x2=”277.39″ y2=”0.5″/><text class=”b”
   transform=”translate(125.65 49.32)”>Hello</text></svg>
 * Is there a way to insert an inline SVG into a question?
 * Thanks!
    -  This topic was modified 4 years, 2 months ago by [Ari123](https://wordpress.org/support/users/ucdguy/).
    -  This topic was modified 4 years, 2 months ago by [Ari123](https://wordpress.org/support/users/ucdguy/).
    -  This topic was modified 4 years, 2 months ago by [Ari123](https://wordpress.org/support/users/ucdguy/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ays Pro](https://wordpress.org/support/users/ays-pro/)
 * (@ays-pro)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/inline-svg-3/#post-15523237)
 * Dear [@ucdguy](https://wordpress.org/support/users/ucdguy/),
 * Thank you for the topic.
 * I want to mention that we sanitize the Question title via the [wp_kses_post](https://developer.wordpress.org/reference/functions/wp_kses_post/)
   function.
    Please note, that the SVG is not being supported by WordPress, that
   is why this tag is being removed while sanitizing.
 * The tag is being removed while sanitizing that is why the SVG is being removed
   as well.
    Unfortunately, we are not able to make any changes in this regard and
   exclude the process of sanitizing, since it is a **required condition** of WordPress.
 * For now, we can suggest you change the SVG and, in case it is an image, achieve
   your desired result with the help of an image tag.
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Inline SVG’ is closed to new replies.

 * ![](https://ps.w.org/quiz-maker/assets/icon-256x256.png?rev=2174282)
 * [Quiz Maker by AYS](https://wordpress.org/plugins/quiz-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quiz-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quiz-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/quiz-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quiz-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quiz-maker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ays Pro](https://wordpress.org/support/users/ays-pro/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/inline-svg-3/#post-15523237)
 * Status: resolved