こんにちは
style.cssの末尾にペーストしてみてください。
.home #primary:not(.site-content),
.archive #primary:not(.site-content),
.tag #primary:not(.site-content),
.search #primary:not(.site-content),
.attachment #primary:not(.site-content) {
width: 800px;
}
.single .wp-post-image{
display:none;
}
お返事ありがとうござます!
ペーストしてみたのですが、
変更前
(記事名などはオレンジで隠してます)
変更後
という感じになりました。
こちらの希望としては、投稿した記事が変更前のキャプチャの赤で囲ったくらいの大きさになればいいなと思ったのですが……。
すみません、言い忘れましたので追記します。
キャプチャに映った記事のほとんどはアイキャッチ画像を使用していませんが、
使用した記事も使用していない記事と同じように横幅が狭くなりました。
記事内のアイキャッチ画像は消えました!
ありがとうございます!
.home #primary > article,
.archive #primary > article,
.tag #primary > article,
.search #primary > article,
.attachment #primary > article {
width: 800px;
margin:auto;
}
.single .wp-post-image{
display:none;
}
記事内のアイキャッチ画像は消えましたが、
ホームの記事の大きさは最初の状態に戻ってしまいました。
よく見てみました。
テーマが壊れていますね
style.css 466行 widthを削除するか、コメントアウトしてください。
.home #primary,
.archive #primary,
.tag #primary,
.search #primary,
.attachment #primary {
background: transparent;
-webkit-box-shadow: none;
-moz-box-shadow: none;
-ms-box-shadow: none;
box-shadow: none;
padding: 0;
overflow: hidden;
/*width: auto; */
}
functions.php
<?php
//以下の1行を追加
set_theme_mod('portfolio_content_width', 800);
/**
*
* Portfolio functions and definitions
*
*/
// loading the necessary elements
get_template_part( 'comments', 'template' );
get_template_part( 'theme', 'customizer' );
上の 800の部分が幅になるので、好きな幅に変更
で、とりあえずいけると思います。
ほんとうだと、テーマカスタマイザーのcontent widthから調整できるようになっているべきですが、これが動いていない