回答編集履歴

1

修正

2017/12/20 13:04

投稿

退会済みユーザー
test CHANGED
@@ -40,13 +40,15 @@
40
40
 
41
41
  if( strstr( $url, '/en/' ) ) {
42
42
 
43
- echo '<link rel="stylesheet" id="en-style-css" href="/wp-content/themes/twentyseventeen/en.css" />';
43
+ echo '<link rel="stylesheet" id="en-style-css" href="'.get_theme_file_uri().'/en.css" />';
44
44
 
45
45
  } else {
46
46
 
47
- echo '<link rel="stylesheet" id="style-css" href="/wp-content/themes/twentyseventeen/style.css" />';
47
+ echo '<link rel="stylesheet" id="style-css" href="'.get_stylesheet_uri().'" />';
48
48
 
49
49
  }
50
+
51
+ ?>
50
52
 
51
53
  ```
52
54