Skip to content

Instantly share code, notes, and snippets.

@Roy-Oto
Created June 1, 2021 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Roy-Oto/d387dbbd355c2b81da7c99c08aca8a93 to your computer and use it in GitHub Desktop.
Save Roy-Oto/d387dbbd355c2b81da7c99c08aca8a93 to your computer and use it in GitHub Desktop.
How to create a CSS input field for AMP
// AMP 用 CSS の入力欄
add_action( 'amp_post_template_css', 'xyz_amp_my_additional_css_styles' );
function xyz_amp_my_additional_css_styles( $amp_template ) {
?>
/* CSS の追加は以下に */
/* CSS の追加はこの上に */
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment