wordpress-memo
  • wordpress 構築 memo
  • ファイル構造
  • よく使う関数
  • index.php
  • 子テーマで CSS, temp.php, function.php を上書きする
  • 完全に一から template を作る
  • カスタムフィールから画像を読み込ませる
  • 開発環境の問題点の整理
  • データの永続化 docker volume 周り
  • 外タレ記事読み込み
Powered by GitBook
On this page
  • /wp-content/themes/任意の子テーマフォルダ を作る
  • index.php, single.php とかも上書きできる

子テーマで CSS, temp.php, function.php を上書きする

/wp-content/themes/任意の子テーマフォルダ を作る

その中の style.css に Template: 対象の親テーマフォルダ名 を配置する

style.css で @import url('../simplesimple/style.css'); で親の CSS を読み込んだ上で、さらに上書きしていく。

index.php, single.php とかも上書きできる

上書きしたいファイルだけ用意すればいい。

Previousindex.phpNext完全に一から template を作る

Last updated 6 years ago