トップディレクトリ(/var/www/html)の下にサブディレクトリを作成して、 そこにwordpressを構築する。
<Directory "/var/www/html/ディレクトリ"> AllowOverride All </Directory>
<Files ~ "^(wp-login\.php|xmlrpc\.php)$"> Order deny,allow Deny from all allow from 1.0.16.0/20 allow from 1.0.64.0/18 allow from 1.1.64.0/18 (途中省略) allow from 223.223.164.0/22 allow from 223.223.208.0/21 allow from 223.223.224.0/19 </Files> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /ディレクトリ/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /ディレクトリ/index.php [L] </IfModule> # END WordPress
/* Theme Name: attitude-child Template: attitude /* body, input, textarea { color: #777; font: 13px "メイリオ", "Meiryo", "Osaka", "ヒラギノ角ゴ Pro W3″, "Hiragino Kaku Gothic Pro", "MS Pゴシック", "MS PGothic", sans-serif; line-height: 20px; word-wrap: break-word; }
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); } // Remove old copyright text add_action( 'init' , 'mh_remove_copy' , 15 ); function mh_remove_copy() { remove_action( 'attitude_footer', 'attitude_footer_info', 30 ); } // Add my own copyright text add_action( 'attitude_footer' , 'mh_footer_info' , 30 ); function mh_footer_info() { $output = '<div class="copyright">'.'Copyright © 2015 Abcdefg Hijklmn, all rights reserved.'.'</div><!-- .copyright -->'; echo $output; }
define('FORCE_SSL_ADMIN', true);
最終更新日:2015/09/10