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

  • WordPress 5 Complete
  • Karol Król
  • 222字
  • 2021-07-02 12:36:51

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.

主站蜘蛛池模板: 瑞金市| 施秉县| 迁安市| 喀喇| 墨竹工卡县| 故城县| 鹿泉市| 九龙坡区| 鄂伦春自治旗| 绥德县| 诏安县| 中牟县| 成都市| 衡南县| 都安| 定远县| 遂平县| 崇文区| 山阳县| 鄱阳县| 万年县| 手机| 汉沽区| 灯塔市| 垫江县| 宜良县| 天峻县| 余江县| 浙江省| 莒南县| 合川市| 重庆市| 海兴县| 吴堡县| 都江堰市| 永善县| 望城县| 瑞金市| 榆树市| 元朗区| 盐池县|