admin管理员组文章数量:1277271
I'm building a custom "row" plugin and would like to control some css-grid related stuff from the backend. What is the "best way" to save the css generated from the controls and how to inject it into the website?
Right now I'm using add_action( 'wp_head', array( $this, 'render_server_side_css' ) );
, to get my css stored inside block attributesto the frontend (head), but is this js + php approach the best way or is there a more "gutenberg ready" approach to solve this issue?
And if that is the right way, how to generate some ids for styling? The client id is always changing, so that is not really an option ...
本文标签: plugin developmentBest way to save custom css for an block
版权声明:本文标题:plugin development - Best way to save custom css for an block 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741292605a2370633.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论