在用 wordpress 發表文章時,會遇到需要有 引文,感想 在文章中的區隔,因為新版的 wordpress 是用 gutenberg 來編輯文章的,所以在嘗試有何方式可以做到這一方面
目前想到有下列的方式,可以達成

設定引言 & 感想 block 的方式

  • 使用 custom css 的方式來設定
    • 目前有做出一版這樣的方式,但是要自己記住 css 的名稱,覺得有些麻煩
  • 修改目前的 css 設定 (例如:引言的 css 設定)
    • 這似乎是最不建議的方式,要用這方式的話,應該要建立 child-template 來進行
  • 使用 wordpress plugin 來建立 custom block
  • 直接使用 plugin 來設定需要的 custom block
    • Advanced Gutenberg
      • Custom Style for Blocks - You create custom CSS styles and making them available to end users. Name the style, and let the content editors use it when they need it.
  • 建立新的 block 來設定 (custom block)
    • 這應該是最底層 & 最需要一步一步來的方式。目前還沒有足夠的時間這麼做

使用 Advanced Gutenberg 的紀錄

Reference

Comments