0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WordPressでのscreenshot.png(テーマ画像)について

Last updated at Posted at 2020-12-08

ワードプレスのテーマtwentytwentyを基盤に、管理画面「外観」>「テーマ」でサイトのスクリーンショット画面を表示させる実装を行ったので、備忘録的にこの記事を残す。

環境情報

PHP:version 7.3.12
WordPress:version 5.5.3
WPテーマ:twentytwenty

作業

管理画面「外観」>「テーマ」でサイトのスクリーンショット画面を表示させるためには、「screenshot.png」が必要です。
スクリーンショット画面は、たとえば次の要領で作成・保存します。
トップページなどのスクリーンショットを取得し、画像サイズを880×660ピクセルにします。画像ファイル名は「screenshot.pmg」とします。
作成したscreenshot.pngをindex.phpやstyle.cssと同じ階層に配置します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?