liveBook · Manning

Classic block

As explained in WordPress Power Toolkit: Harness AI to build next-level websites

A Classic block is a Gutenberg content block that provides the traditional WordPress editor interface within a block-based page.

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

How WordPress Power Toolkit: Harness AI to build next-level websites covers it

How deep it goes
Gives click-by-click procedures for inline CSS and links, without explaining block internals.
Examples
Uses a red paragraph and a link between pages on a recipes site.
What it assumes
Starts with page navigation and toolbar actions, then shows the HTML needed for an inline paragraph style.
What you can do after
Apply it via a Classic block to edit a paragraph’s CSS or insert a link using familiar controls.
How it connects
Connects Gutenberg, the classic WordPress editor, HTML, inline CSS, CSS classes, and hyperlinks.

This explainer was generated by Manning's knowledge graph from the text of WordPress Power Toolkit: Harness AI to build next-level websites. The section links point to the parts of the book it draws on.