A Classic block gives you the traditional WordPress editing interface inside a Gutenberg page. It is handy when you want familiar toolbar controls for a link or need to edit a paragraph’s HTML. section 7.7 section 3.5.2
To change one paragraph with inline CSS:
- Open Pages > All Pages, select a page, click +, and add a Classic block rather than a Paragraph block. Type your paragraph. section 7.7
- Select the block and choose View > Source Code from its toolbar. Add a style attribute to the paragraph’s HTML, then click OK. The change appears in the editor without updating or previewing the page. section 7.7
- If you have defined a CSS class under Appearance > Customize > Additional CSS, you can use a class attribute instead. You can also switch to code view with Ctrl-Shift-Alt-M and return with Exit Code Editor. section 7.7
<p style="color: red;">This is a paragraph</p>
This paragraph uses an inline style to make its text red. section 7.7
The Classic block also lets you follow traditional Visual-tab instructions for adding a link: place the cursor, click Insert/Edit Link, choose a destination, add the link, and update the page. Take care when editing CSS in a Paragraph block: the described Gutenberg behavior can report valid content as invalid, and Attempt Block Recovery can delete the block. section 3.5.2 section 7.7
