質問編集履歴

3

書式の改善

2019/01/10 07:03

投稿

pakoyama
pakoyama

スコア10

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,9 @@
42
42
 
43
43
 
44
44
 
45
-
45
+ ▼上記のコードがかかっている場所
46
+
47
+ ![イメージ説明](519bd313ccf1e139845931d5363a7bab.png)
46
48
 
47
49
 
48
50
 

2

書式の改善

2019/01/10 07:03

投稿

pakoyama
pakoyama

スコア10

test CHANGED
File without changes
test CHANGED
@@ -32,6 +32,20 @@
32
32
 
33
33
 
34
34
 
35
+ クロームで確認すると下記のコードが確認できますが、
36
+
37
+ 実際にコードがある箇所が見当たりません。
38
+
39
+
40
+
41
+ ![イメージ説明](47b42fc4a7609cb4d22e3876788eb196.png)
42
+
43
+
44
+
45
+
46
+
47
+
48
+
35
49
  ### 発生している問題・エラーメッセージ
36
50
 
37
51
  ```
@@ -52,7 +66,7 @@
52
66
 
53
67
  /**
54
68
 
55
- * Displays header site branding
69
+ * Displays content for front page
56
70
 
57
71
  *
58
72
 
@@ -66,69 +80,65 @@
66
80
 
67
81
  */
68
82
 
69
-
70
-
71
83
  ?>
72
84
 
73
- <?php the_custom_logo(); ?>
74
-
75
- <div class="site-branding">
76
-
77
- <div class="wrap">
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
- <div class="site-branding-text">
86
-
87
- <?php
88
-
89
- $description = get_bloginfo( 'description', 'display' );
90
-
91
-
92
-
93
- if ( $description || is_customize_preview() ) :
94
-
95
- ?>
96
-
97
- <p class="site-description"><?php echo $description; ?></p>
98
-
99
- <?php endif; ?><!-- サイトサブタイトル -->
100
-
101
-
102
-
103
- <?php if ( is_front_page() ) : ?>
104
-
105
- <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
106
-
107
- <?php else : ?>
108
-
109
- <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
110
-
111
- <?php endif; ?><!-- サイトタイトル -->
112
-
113
-
114
-
115
-
116
-
117
- </div><!-- .site-branding-text -->
118
-
119
-
120
-
121
- <?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?>
122
-
123
- <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>
85
+ <img src="http://wp-content/uploads/2019/01/test02-min-min.jpg" width="100%" height="40%">
86
+
87
+ <article id="post-<?php the_ID(); ?>" <?php post_class( 'twentyseventeen-panel ' ); ?> >
88
+
89
+
90
+
91
+ <?php if ( has_post_thumbnail() ) :
92
+
93
+ $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' );
94
+
95
+
96
+
97
+ // Calculate aspect ratio: h / w * 100%.
98
+
99
+ $ratio = $thumbnail[2] / $thumbnail[1] * 100;
100
+
101
+ ?>
102
+
103
+
104
+
105
+ <div class="panel-image">
106
+
107
+ <div class="panel-image-prop" style="padding-top: <?php echo esc_attr( $ratio ); ?>%"></div>
108
+
109
+ </div><!-- .panel-image -->
110
+
111
+
124
112
 
125
113
  <?php endif; ?>
126
114
 
127
-
115
+ <div class="panel-content">
128
-
116
+
129
- </div><!-- .wrap -->
117
+ <div class="wrap">
130
-
118
+
131
- </div><!-- .site-branding -->
119
+ <header class="entry-header">
120
+
121
+ <?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
122
+
123
+ <?php twentyseventeen_edit_link( get_the_ID() ); ?>
124
+
125
+
126
+
127
+ <a href="wp-content/uploads/2019/01/pulpFiction1_002.jpg" class="ex" title="">
128
+
129
+ <img src="wp-content/uploads/2019/01/pulpFiction1_002.jpg" width="300" alt="">
130
+
131
+ </a>
132
+
133
+
134
+
135
+
136
+
137
+ <h3 style="text-align: center;">テストタイトル</h3>
138
+
139
+ <hr style="margin:50px 0px;">
140
+
141
+
132
142
 
133
143
 
134
144
 

1

書式の最善

2019/01/10 07:00

投稿

pakoyama
pakoyama

スコア10

test CHANGED
@@ -1 +1 @@
1
- 初心者ですが、ワードプレスのヘッダーの高さを変更したいです。
1
+ 初心者ですワードプレスのヘッダーの高さを変更したいです。
test CHANGED
@@ -4,8 +4,6 @@
4
4
 
5
5
 
6
6
 
7
- ここに質問の内容を詳しく書いてください。
8
-
9
7
  ワードプレステンプレートを使用しています。
10
8
 
11
9
  テンプレートは、【twentyseventeen】です。
@@ -30,6 +28,10 @@
30
28
 
31
29
 
32
30
 
31
+ よろしくお願いいたします。
32
+
33
+
34
+
33
35
  ### 発生している問題・エラーメッセージ
34
36
 
35
37
  ```