質問編集履歴
4
質問内容の最適化
test
CHANGED
File without changes
|
test
CHANGED
@@ -154,7 +154,7 @@
|
|
154
154
|
|
155
155
|
get_header(); ?>
|
156
156
|
|
157
|
-
<img src="http://
|
157
|
+
<img src="http://test.jp/wp-content/uploads/2018/12/shinki1-min.jpg" width="100%" height="40%">
|
158
158
|
|
159
159
|
|
160
160
|
|
3
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,15 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
-
```
|
43
|
+
```html
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
-----------------------------------------------------
|
48
|
+
|
49
|
+
nav コード
|
50
|
+
|
51
|
+
-----------------------------------------------------
|
44
52
|
|
45
53
|
<?php
|
46
54
|
|
2
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,6 +40,74 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
+
```ナビゲーションhtml
|
44
|
+
|
45
|
+
<?php
|
46
|
+
|
47
|
+
/**
|
48
|
+
|
49
|
+
* Displays top navigation
|
50
|
+
|
51
|
+
*
|
52
|
+
|
53
|
+
* @package WordPress
|
54
|
+
|
55
|
+
* @subpackage Twenty_Seventeen
|
56
|
+
|
57
|
+
* @since 1.0
|
58
|
+
|
59
|
+
* @version 1.2
|
60
|
+
|
61
|
+
*/
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
?>
|
66
|
+
|
67
|
+
<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>">
|
68
|
+
|
69
|
+
<button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
|
70
|
+
|
71
|
+
<?php
|
72
|
+
|
73
|
+
echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) );
|
74
|
+
|
75
|
+
echo twentyseventeen_get_svg( array( 'icon' => 'close' ) );
|
76
|
+
|
77
|
+
_e( 'Menu', 'twentyseventeen' );
|
78
|
+
|
79
|
+
?>
|
80
|
+
|
81
|
+
</button>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<?php wp_nav_menu( array(
|
86
|
+
|
87
|
+
'theme_location' => 'top',
|
88
|
+
|
89
|
+
'menu_id' => 'top-menu',
|
90
|
+
|
91
|
+
) ); ?>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && has_custom_header() ) : ?>
|
96
|
+
|
97
|
+
<a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ); ?><span class="screen-reader-text"><?php _e( 'Scroll down to content', 'twentyseventeen' ); ?></span></a>
|
98
|
+
|
99
|
+
<?php endif; ?>
|
100
|
+
|
101
|
+
</nav><!-- #site-navigation -->
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
```
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
43
111
|
```html
|
44
112
|
|
45
113
|
<?php
|
1
タイトルの最適化
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|