「TCD AWARD 2023」受賞サイトを発表しました。

ワードプレステーマ別

スマホでTCDテーマCUBEY閲覧時に記事ページの画像がはみ出てしまうときの対処法

Q.スマホ表示で記事内の画像が見切れるのを修正したい

スマホで見ると、記事詳細ページの写真がはみ出してしまうのですが、どのようにすれば調整できるのでしょうか?

A.下記のcssファイルの該当箇所を編集します

編集するファイル:style.css
編集する箇所:

.post_content img[class*="align"], .post_content
img[class*="wp-image-"], .post_content img[class*="attachment-"],
.post_content img.size-full, .post_content img.size-large,
.post_content .wp-post-image
 { height:auto; max-width:100%; }

    ↓

.post_content img[class*="align"], .post_content
img[class*="wp-image-"], .post_content img[class*="attachment-"],
.post_content img.size-full, .post_content img.size-large,
.post_content .wp-post-image, .post_content img
 { height:auto; max-width:100%; }

※上記編集を行い、状況が改善されないようであればプラグインの影響である可能性が高いため、一度すべてのプラグインを停止した上で正常に動作するかをご確認ください。

この記事は役に立ちましたか?

もし参考になりましたら、下のボタンで教えてください。
今後の記事作成の参考とさせて頂きます!

同じテーマのカスタマイズ記事