[Note] How to Style code in WordPress?

In WordPress, the edition of posts supports <code> tag. We can add <code> block by clicking Add block button.

 

Then, the default <code > style in WordPress looks like the following:

<!DOCTYPE html>
<html>
<head>
    <title>TITLE</title>
</head>
<body>
    <p>Test</p>
</body>
</html>

To add .class in Additional CSS can style the code block. We can click Appearance > Customize to arrive Additional CSS.

              

Read more[Note] How to Style code in WordPress?

(Visited 8 times, 1 visits today)