How to copy shortcodes and code snippets properly in wordpress

I found that many clients don’t realize that visual mode of wordpress is working not as plain mode. So, when you copy something from other sites and paste snippets in content, you can get not expected results. Let me explain

For example, I will copy shortcode of S2member from their docs.

I copied shortcode in visual editor in wordpress and what I got? Nothing. It’s because I copied just html code of codebox from their site instead of plain code. To be sure, I switch to text mode of editor and this is what I see

It doesn’t look the same thing which I copied. This is because visual editor, by default, renders also any html code.

What is the proper way to insert copied shortcodes?

WordPress has good button “Paste as text”

This is what you need to use for proper inserting shortcodes and any other text from other sites.

 

How to copy shortcodes and code snippets properly in wordpress
5 (100%) 1 vote

Want to get unique wordpress tips?

We won't rent or sell or spam your email. We promise!

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz