官术网_书友最值得收藏!

Using the block-based editor versus the code editor

As we've discussed, WordPress comes with a new block-based editor that's meant to make creating web pages easier for most users, even if they have no prior experience with website management. However, if you are comfortable with coding and HTML, you might want to take a peek into the code editor that's available in WordPress as well. This can be particularly useful if you want to add special content or styling that's not otherwise possible to achieve using the block-based editor.

To switch from the visual editor to the code editor, click on the three dots that are in the top-right corner of the screen when editing a post, and then click on Code Editor. Refer to the following screenshot:

You'll see the post you're currently editing in all its raw HTML glory. Just to give you an example, here's what one of the initial posts created for this book looks like when viewed in the Code Editor:

Although this panel lets you do whatever you wish, you also need to be careful not to break the HTML structure of the document. For this reason, it's perhaps not a good idea to get into these sorts of modifications until you get a basic understanding of how an HTML document is structured.

主站蜘蛛池模板: 天祝| 庆元县| 延川县| 济源市| 陆川县| 胶南市| 奉化市| 安塞县| 永兴县| 岱山县| 隆德县| 武安市| 嘉峪关市| 平邑县| 河间市| 小金县| 永昌县| 拉孜县| 定南县| 黄龙县| 广平县| 高邮市| 东安县| 江川县| 张家口市| 米易县| 凌云县| 浦县| 耿马| 罗江县| 荃湾区| 民权县| 喀喇| 文安县| 大邑县| 顺义区| 铁岭县| 曲阜市| 中卫市| 闵行区| 通州区|