AnsPress の質問一覧や質問フォームのデザインを変えたい。
公式ページにその方法が書かれていました。
英語でした(笑)
AnsPress makes it easy to customize layout. Everything inside a theme folder can be easily overridden. Never directly edit AnsPress files in plugin directory because you’ll loose all change while updating.
Override folder
- Create a folder called
anspressinside your active theme folder. NOTE: must be created inside parent theme, not child theme.- Now you can copy files you want to modify from
wp-contents\plugins\anspress-question-answer\theme\default\.You must keep the same directory structure if you are modifying sub-folder item. Like if you want to modify
theme\default\css\overrides.cssthen in your override folder it should beanspress\css\overrides.css.Overriding CSS
For adding or overriding AnsPress styles we suggest to use
overrides.css. This file is initially left blank so you can add your own styles here.
日本語にすると、開発者のRahul Aryan はたぶんこう言ってます(^_^;)
簡単にレイアウトを変えられるぜ
テーマフォルダ内の全てをやっつけられるのサ
更新のときに復活するかもだから、直接AnsPressのファイルをいじっちゃダメだぜ
- anspressって名前のフォルダを使用しているテーマフォルダ内に作る
おっと、子テーマフォルダじゃダメだぜ、親テーマフォルダだぜ- wp-contents/plugins/anspress-question-answer/theme/default/内にあるファイルをコピーして修正するんだぜ
CSSファイルは、overrides.cssって名前で、anspress/css/overrides.cssってな具合で設定するぜ
インド人の彼が「だぜ」と言うかどうかは不明ですが、こういうことですたぶん。