Monday, February 16, 2015

February 2015 Wordpress Tips

In Wordpress, entering commands for terminal is easy. Obviously you can simply type the words "sudo apt-get..." and hope that everyone removes the quote marks, but there is actually a better way: the code command.
This results in text that looks like this:
this space intentionally left blank
It looks very polished and is ready to paste into the terminal.
On another note, Wordpress will not accept Wordpress code inside the code markup, so I used a screen shot of the example. However, there is a non-intuitive way to show code markup. To use the code tag, you need to be in "text" mode. If you switch from text to visual, the markup code will fail to render correctly.
<code><div>This is an example of incorrectly entered code markup text.</div><code>
Note that the font also did not change.
<code><div>This is an example of correctly entered code markup text.</div><code>
Did you see what I did there?