Created
March 9, 2020 08:58
-
-
Save norilog4/b40f12602d6e61163d363ecce5e3fba9 to your computer and use it in GitHub Desktop.
黄色ボタンのショートコードを追加
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*黄色い光るボタンをショートコード化*/ | |
function shinyyellow( $atts, $content = null ) { | |
return '<div class="yellow-shiny">' . $content . '</div>'; | |
} | |
add_shortcode('yellowshiny', 'shinyyellow'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
⬇️このコードの使い方を紹介しているブログ記事はこちら
https://noripon.blog/2020/03/09/how-to-make-wordpress-shortcode-css-shiny-button/