admin管理员组文章数量:1130349
I am wanting to support the new Block Editor for a theme that I made for a client. However, one of the page types has part of the theme that is displayed depending on whether custom fields are set that the client can modify below the editor (using Toolset Types plugin). It essentially will split the content into two inline sections show the embeds for videos and links to files one side while the rest of the content of the post to the right.
Is there a way to add custom blocks that will essentially split the content if set and allow the user to change the value (url of embed/file) so that it looks like what will end up on the site?
If that is not a solution, is there a way to add placeholders, if custom fields are being used with values? I don't want to actually add to the content itself since that would affect what is currently being displayed in the theme as it is now. If I create new blocks I would refactor the theme's pages to account for the change.
Thank you so much in advance!
I am wanting to support the new Block Editor for a theme that I made for a client. However, one of the page types has part of the theme that is displayed depending on whether custom fields are set that the client can modify below the editor (using Toolset Types plugin). It essentially will split the content into two inline sections show the embeds for videos and links to files one side while the rest of the content of the post to the right.
Is there a way to add custom blocks that will essentially split the content if set and allow the user to change the value (url of embed/file) so that it looks like what will end up on the site?
If that is not a solution, is there a way to add placeholders, if custom fields are being used with values? I don't want to actually add to the content itself since that would affect what is currently being displayed in the theme as it is now. If I create new blocks I would refactor the theme's pages to account for the change.
Thank you so much in advance!
版权声明:本文标题:theme development - How do you replace content generated by custom fields with custom blocks in Block Editor? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749053208a2308899.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论