Title: bhammie85's Replies | WordPress.org

---

# bhammie85

  [  ](https://wordpress.org/support/users/bhammie85/)

 *   [Profile](https://wordpress.org/support/users/bhammie85/)
 *   [Topics Started](https://wordpress.org/support/users/bhammie85/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bhammie85/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bhammie85/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bhammie85/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bhammie85/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bhammie85/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Undefined Index error when adding or editing recurring events](https://wordpress.org/support/topic/undefined-index-error-when-adding-or-editing-recurring-events/)
 *  Thread Starter [bhammie85](https://wordpress.org/support/users/bhammie85/)
 * (@bhammie85)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/undefined-index-error-when-adding-or-editing-recurring-events/#post-5906425)
 * Ok that worked. Thank you!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Inline SVG Disappears When Switching Between Editing Modes](https://wordpress.org/support/topic/inline-svg-disappears-when-switching-between-editing-modes/)
 *  Thread Starter [bhammie85](https://wordpress.org/support/users/bhammie85/)
 * (@bhammie85)
 * [12 years ago](https://wordpress.org/support/topic/inline-svg-disappears-when-switching-between-editing-modes/#post-4835661)
 * I haven’t found any solution to permanently fix this, but I did turn off the 
   Visual mode as a temporary fix by using this code in my functions.php file for
   the pages where I am using SVGs:
 *     ```
       add_filter( 'user_can_richedit', 'disable_my_richedit' );
       function disable_my_richedit( $default ) {
           global $post;
           if ( in_array( $post->ID, array(432, 10) ) ) // change the post ID
               return false;
           return $default;
       }
       ```
   
 * I found the solution [here](http://wordpress.org/support/topic/how-to-make-specific-entries-always-use-text-mode-and-not-default-visual-mode?replies=3).
 * My clients don’t mind that much but it would be nice to get Visual mode back 
   at some point.
 * Thanks for your help!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Inline SVG Disappears When Switching Between Editing Modes](https://wordpress.org/support/topic/inline-svg-disappears-when-switching-between-editing-modes/)
 *  Thread Starter [bhammie85](https://wordpress.org/support/users/bhammie85/)
 * (@bhammie85)
 * [12 years ago](https://wordpress.org/support/topic/inline-svg-disappears-when-switching-between-editing-modes/#post-4835607)
 * Hi Josh,
 * Any luck with a solution? Maybe TinyMCE doesn’t like <g> or <rect> or <circle
   > elements, or it doesn’t like self-closing elements?
 * Is there an alternative to TinyMCE that I could try?
 * Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Inline SVG Disappears When Switching Between Editing Modes](https://wordpress.org/support/topic/inline-svg-disappears-when-switching-between-editing-modes/)
 *  Thread Starter [bhammie85](https://wordpress.org/support/users/bhammie85/)
 * (@bhammie85)
 * [12 years ago](https://wordpress.org/support/topic/inline-svg-disappears-when-switching-between-editing-modes/#post-4835567)
 * Hi Josh,
 * I placed your code in the bottom of my theme’s functions.php file. I created 
   the theme using underscores.me.
 * I also copied just the snippet of the svg code (as in what I said in my first
   message) and tried that, and yes it worked.
 * However, the problem is that the actual svg is a really big complex graphic and
   has lots of elements inside of it – and WordPress doesn’t like something about
   it. It contains `<rect>`s, `<circle>`s, `<path>`s, `<g>`s, etc.
 * Here’s a [screenshot](http://recordit.co/6b8gWwlof1) of both the small snippet
   and the big one. You can see the big one still doesn’t work.
 * I did some testing by removing individual elements, but if I leave anything inside
   the `<svg>` tags, WordPress removes the whole thing.
 * Here’s a [link](https://gist.githubusercontent.com/thebeckyhamm/1830872606c7af0f2bae/raw/94473dbefc9e1d50a27cfc3fee4f3bd4934ee098/test+svg)
   to the raw svg code.
 * Any idea how to get WordPress to ignore everything inside the `<svg>` tags?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Inline SVG Disappears When Switching Between Editing Modes](https://wordpress.org/support/topic/inline-svg-disappears-when-switching-between-editing-modes/)
 *  Thread Starter [bhammie85](https://wordpress.org/support/users/bhammie85/)
 * (@bhammie85)
 * [12 years ago](https://wordpress.org/support/topic/inline-svg-disappears-when-switching-between-editing-modes/#post-4835536)
 * Hi Josh,
 * Thanks for the quick response!
 * Unfortunately it didn’t work for me. I put it in the bottom of my functions.php
   file and I still get the same behavior. Here is a little gif screencast of the
   problem:
 * [http://recordit.co/OBz3bSvspr](http://recordit.co/OBz3bSvspr)
 * Any ideas? The “weird” attributes for `<svg>` elements are standard attributes
   for them.

Viewing 5 replies - 1 through 5 (of 5 total)