admin管理员组文章数量:1431720
I just want to put the CSS's content inside tag <style amp-custom>
This is my action inside function
function amp_template_add_styles() { $stylesheets = get_template_directory_uri() . '/material/public/app.min.css'; echo file_get_contents( $stylesheets ); } add_action( 'amp_template_css', 'amp_template_add_styles', 99 );
And i call the function insider tag <head>
<style amp-custom> <?php do_action( 'amp_template_css', 'amp_template_add_styles'); ?> </style>
And this is the error when i implement in this way
There are anyone knows about this, please help me, thanks
本文标签: theme developmentPut CSS Content inside tag ltstyle ampcustomgt for Wordpress
版权声明:本文标题:theme development - Put CSS Content inside tag <style amp-custom> for Wordpress 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745514515a2661465.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论