谷腾堡编辑器自带,提取出平时使用经典编辑器方便使用。理论高版本的wordpress都可以用吧。字体颜色也可以更改,用到了再去谷腾堡拿吧!
<divclass="wp-block-button"><aclass="wp-block-button__link has-text-color has-very-light-gray-color has-background has-very-dark-gray-background-color"href="https://www.zmki.cn/">黑色按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-vivid-red-background-color"href="https://www.zmki.cn/">红色按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-luminous-vivid-orange-background-color"href="https://www.zmki.cn/">橙色按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-luminous-vivid-amber-background-color"href="https://www.zmki.cn/">黄色按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-light-green-cyan-background-color"href="https://www.zmki.cn/">薄荷绿按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-vivid-green-cyan-background-color"href="https://www.zmki.cn/">翠绿按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-pale-cyan-blue-background-color"href="https://www.zmki.cn/">浅蓝按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-vivid-cyan-blue-background-color"href="https://www.zmki.cn/">深蓝按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-very-light-gray-background-color"href="https://www.zmki.cn/">银白按钮</a></div>
<divclass="wp-block-button"><aclass="wp-block-button__link has-background has-cyan-bluish-gray-background-color"href="https://www.zmki.cn/">灰色按钮</a></div>
原创文章,作者:Alextao,如若转载,请注明出处:《wordpress文章内添加按钮》
文章源自钻芒博客