質問編集履歴
2
WPテーマ名を追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,9 @@
|
|
6
6
|
PC、スマホ、タブレット、どの端末で閲覧してもそれぞれ同じ位置に表示させたいです。
|
7
7
|
|
8
8
|
現状
|
9
|
+
WPのテーマはTwenty Seventeenを使用しています。
|
9
10
|
子テーマを作成してCSSを調整していますがうまくいきません。
|
11
|
+
|
10
12
|
お詳しい方よろしくご教示お願いいたします。
|
11
13
|

|
12
14
|
|
1
パンくずリストのコードを追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,4 +8,57 @@
|
|
8
8
|
現状
|
9
9
|
子テーマを作成してCSSを調整していますがうまくいきません。
|
10
10
|
お詳しい方よろしくご教示お願いいたします。
|
11
|
-

|
11
|
+

|
12
|
+
|
13
|
+
コードは個別投稿ページのget_header() の下に記述しました。
|
14
|
+
```ここに言語を入力
|
15
|
+
php
|
16
|
+
/**
|
17
|
+
* The template for displaying all pages
|
18
|
+
*
|
19
|
+
* This is the template that displays all pages by default.
|
20
|
+
* Please note that this is the WordPress construct of pages
|
21
|
+
* and that other 'pages' on your WordPress site may use a
|
22
|
+
* different template.
|
23
|
+
*
|
24
|
+
* @link https://codex.wordpress.org/Template_Hierarchy
|
25
|
+
*
|
26
|
+
* @package WordPress
|
27
|
+
* @subpackage Twenty_Seventeen
|
28
|
+
* @since 1.0
|
29
|
+
* @version 1.0
|
30
|
+
*/
|
31
|
+
|
32
|
+
get_header(); ?>
|
33
|
+
//ここからコードを記述
|
34
|
+
<div class="breadcrumbs">
|
35
|
+
<?php if(function_exists('bcn_display'))
|
36
|
+
{
|
37
|
+
bcn_display();
|
38
|
+
}?>
|
39
|
+
</div>//ここまで
|
40
|
+
<div class="wrap">
|
41
|
+
|
42
|
+
<div id="primary" class="content-area">
|
43
|
+
|
44
|
+
<main id="main" class="site-main" role="main">
|
45
|
+
|
46
|
+
<?php
|
47
|
+
while ( have_posts() ) : the_post();
|
48
|
+
|
49
|
+
get_template_part( 'template-parts/page/content', 'page' );
|
50
|
+
|
51
|
+
// If comments are open or we have at least one comment, load up the comment template.
|
52
|
+
if ( comments_open() || get_comments_number() ) :
|
53
|
+
comments_template();
|
54
|
+
endif;
|
55
|
+
|
56
|
+
endwhile; // End of the loop.
|
57
|
+
?>
|
58
|
+
|
59
|
+
</main><!-- #main -->
|
60
|
+
</div><!-- #primary -->
|
61
|
+
</div><!-- .wrap -->
|
62
|
+
|
63
|
+
<?php get_footer();
|
64
|
+
```
|