teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

質問内容の最適化

2019/01/07 07:55

投稿

meeee
meeee

スコア12

title CHANGED
File without changes
body CHANGED
@@ -76,7 +76,7 @@
76
76
  */
77
77
 
78
78
  get_header(); ?>
79
- <img src="http://viasto-test.ciao.jp/wp-content/uploads/2018/12/shinki1-min.jpg" width="100%" height="40%">
79
+ <img src="http://test.jp/wp-content/uploads/2018/12/shinki1-min.jpg" width="100%" height="40%">
80
80
 
81
81
  <div class="wrap">
82
82
  <div id="primary" class="content-area">

3

書式の改善

2019/01/07 07:55

投稿

meeee
meeee

スコア12

title CHANGED
File without changes
body CHANGED
@@ -19,7 +19,11 @@
19
19
 
20
20
  現在のコードは、以下になります。
21
21
 
22
- ```ナビゲーションhtml
22
+ ```html
23
+
24
+ -----------------------------------------------------
25
+ nav コード
26
+ -----------------------------------------------------
23
27
  <?php
24
28
  /**
25
29
  * Displays top navigation

2

書式の改善

2019/01/07 04:17

投稿

meeee
meeee

スコア12

title CHANGED
File without changes
body CHANGED
@@ -19,6 +19,40 @@
19
19
 
20
20
  現在のコードは、以下になります。
21
21
 
22
+ ```ナビゲーションhtml
23
+ <?php
24
+ /**
25
+ * Displays top navigation
26
+ *
27
+ * @package WordPress
28
+ * @subpackage Twenty_Seventeen
29
+ * @since 1.0
30
+ * @version 1.2
31
+ */
32
+
33
+ ?>
34
+ <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Top Menu', 'twentyseventeen' ); ?>">
35
+ <button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
36
+ <?php
37
+ echo twentyseventeen_get_svg( array( 'icon' => 'bars' ) );
38
+ echo twentyseventeen_get_svg( array( 'icon' => 'close' ) );
39
+ _e( 'Menu', 'twentyseventeen' );
40
+ ?>
41
+ </button>
42
+
43
+ <?php wp_nav_menu( array(
44
+ 'theme_location' => 'top',
45
+ 'menu_id' => 'top-menu',
46
+ ) ); ?>
47
+
48
+ <?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && has_custom_header() ) : ?>
49
+ <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>
50
+ <?php endif; ?>
51
+ </nav><!-- #site-navigation -->
52
+
53
+ ```
54
+
55
+
22
56
  ```html
23
57
  <?php
24
58
  /**

1

タイトルの最適化

2019/01/07 04:16

投稿

meeee
meeee

スコア12

title CHANGED
File without changes
body CHANGED
File without changes