3 Comments

  1. Hi, thanks for helpful article!

    I remember this method of styling the content right in the editor was added when add_editor_style() was born. I posted a post on my personal blog using the same technique, but for styling the content in the editor exactly like in the frontend.

    IMHO, I think this is the good way to integrate complex elements into themes. The big benefit I see, besides the visual styling, is website won’t be broken if we switch theme or deactivate plugins.

    1. Hi Anh,
      That’s a good write-up. Ya, this method has been around a long time and I do think I remember a few implementations of it early on that were… less than stellar. I think this method has been ignored for all the fancy drag-n-drop approaches, but honestly, they are not a replacement for this. They are a totally different approach to a different problem.

      Your point about switching themes is also REALLY important. You’re exactly right, that’s another reason why this is better than shortcodes (as MY site can testify to, since there’s still orphan shortcodes all over the place :-( )

      Thanks for stopping by!

Leave a Reply

Your email address will not be published. Required fields are marked *