Skip to content

Instantly share code, notes, and snippets.

@norilog4
Created March 9, 2020 08:57
Show Gist options
  • Save norilog4/7132e058e46911dffd42c953d58476d0 to your computer and use it in GitHub Desktop.
Save norilog4/7132e058e46911dffd42c953d58476d0 to your computer and use it in GitHub Desktop.
赤色ボタンのショートコードを追加
/*赤い光るボタンをショートコード化*/
function ShinyBtn( $atts, $content = null ) {
return '<div class="red-shiny">' . $content . '</div>';
}
add_shortcode('redshiny', 'ShinyBtn');
@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