Site logo

Archived topic

content boxes

3 replies · Started by Micol on January 13, 2019

Viewing posts 1–4 of 4

Hi there,

if you're using Gutenberg you can use the Code Block.

if you're in the classic editor - you can wrap your code like this:

<pre><code>
My code in here
</code></pre>

So best thing is to add your code to Visual (normal) editor, then swap to the Text (code) editor and put in the <pre><code> tags.

Hi David! Thanks a lot, it worked!
Can you tell me how to change the color of the box? Now it's grey.
Thanks again and have a nice day

Try this:

code {
    background-color: #d0d0d0; /* change hex value */
}
This archived topic is closed to new replies.