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

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

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 ;)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745538109a4631999.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信