Skip to content

Instantly share code, notes, and snippets.

@norilog4
Created March 9, 2020 08:59
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 norilog4/82f0d73b3fde1dc4fe426e98d7a6d87f to your computer and use it in GitHub Desktop.
Save norilog4/82f0d73b3fde1dc4fe426e98d7a6d87f to your computer and use it in GitHub Desktop.
青色ボタンのショートコードを追加
/*青い光るボタンをショートコード化*/
function shinyblue( $atts, $content = null ) {
return '<div class="blue-shiny">' . $content . '</div>';
}
add_shortcode('blueshiny', 'shinyblue');
@norilog4
Copy link
Author

norilog4 commented Mar 9, 2020

⬇️このコードの使い方を紹介しているブログ記事はこちら
https://noripon.blog/2020/03/09/how-to-make-wordpress-shortcode-css-shiny-button/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment