最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

theme development - Is there a way to add classes to a page when using a Gutenberg reusable block as page layout?

programmeradmin2浏览0评论

I want to make some page layouts with the Gutenberg page builder so I can reuse them as sort of page templates.

An example:

  • banner image on top of the page
  • main title under the banner
  • 3 rows with each 2-columns with image on the left and text on the right

Example of output code:

It is possible to add a class to the article-element, depending on which reusable block is used? So I can generally style the blocks and reuse them on different pages.

I Hope my question is clear because I kinda struggled writing it down ;)

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论