Hello. I have a problem when I embed the codes for WordPress. Should I follow a certain process? Right now, I am just copying and pasting the codes from a page and then when I do this, it flashes the code right back at me on the screen. What process should I follow?
How to embed code in WordPress
Dear Zorian,
Remember first certain codes will not be allowed to be pasted in WordPress for security reasons e.g. “Embed”.
If you like to embed text codes OF HTML, CSS, PHP or JavaScripts which would ultimately won’t behave like codes on a WordPress code then please follow these steps –
1. First copy this into your post – [source code language=”css”],
2. Then paste your code,
3. Type this in the end – “[/source code].
Simply speaking you can type your code in between 1 and 3 texts.
I have selected CSS as a language so if your language is different (Say HTML) just enter that language name (i.e. HTML) in the above case. Writing a language in step 1 will make your code a hyperlink. If you don't want to create a hyperlink then don't write language there.
I am sure this is made very easy for you.