Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // これは子テーマを作る上で元から書かれている
- add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
- function theme_enqueue_styles() {
- wp_enqueue_style( 'style', get_template_directory_uri() . '/style.css' );
- wp_enqueue_style( 'child-style',
- get_stylesheet_directory_uri() . '/style.css',
- array('style')
- );
- }
- // ここから下を追加
- function showHello() {
- return 'Hello World!';
- }
- add_shortcode('hello', 'showHello');
Add Comment
Please, Sign In to add comment