WordPressのカスタマイズ13選
![Thumbnail of post image 086](https://www.sonohigurashi.blog/wp-content/uploads/2023/03/20230326-wordpress-customization-eyecatch-640x426.png)
WordPressのwp-config.phpファイルとテーマのfunctions.phpファイルやfooter.phpファイルで行っている当ブログのカスタマイズ例を13件紹介する。
![Thumbnail of post image 023](https://www.sonohigurashi.blog/wp-content/uploads/2021/11/20211106-php-dom-load-save-eyecatch-640x426.png)
PHPでDOMを使ってHTMLをロードしてセーブするのが何気に難しかった件
WordPressのthe_contentフィルターフックに関数を登録して引数を介して渡っ ...
![Thumbnail of post image 171](https://www.sonohigurashi.blog/wp-content/uploads/2021/11/20211103-enlighter-latex-eyecatch-640x426.png)
Enlighterプラグインで表示させたコードがMathJax-LaTeXプラグインのLaTeXコマンドとして処理されてしまう問題
Enlighterでコードを表示するとその一部がMathJax-LaTeXプラグインのLa ...
![Thumbnail of post image 000](https://www.sonohigurashi.blog/wp-content/uploads/2021/10/20211031-faux-latex-decoder-eyecatch-640x426.png)
AMPでも動くMathJax-LaTeXのなんちゃってデコーダを作った件
数式を表示するためMathJax-LaTeXプラグインを使っているがこのプラグインはAMP ...
![Thumbnail of post image 154](https://www.sonohigurashi.blog/wp-content/uploads/2021/09/20210929-local-by-flywheel-eyecatch-640x426.png)
初心者でも簡単!Local by Flywheelを使って本番環境からテスト環境を構築する方法を徹底解説
Local by Flywheelを使って本番環境からテスト環境をローカルに構築する方法を ...
![Thumbnail of post image 158](https://www.sonohigurashi.blog/wp-content/uploads/2021/09/20210903-digression-local-eyecatch-640x426.png)
Local by Flywheelで作ったサイトのDBパスワードを変更したらAdminerにログインできなくなった件
セキュリティ上の観点からLocal by Flywheelで作ったサイトのDBパスワードを ...
![Thumbnail of post image 033](https://www.sonohigurashi.blog/wp-content/uploads/2021/08/20210810-digression-updraftplus-eyecatch-640x426.png)
プラグインUpdraftPlusでバックアップしたデータベースのバックアップファイルを解凍してみたらwp_optionsテーブルの復元処理しか含まれていなかった件
UpdraftPlusのデータベースのバックアップファイルを解凍したらテーブルの復元処理足 ...
![Thumbnail of post image 019](https://www.sonohigurashi.blog/wp-content/uploads/2021/08/20210806-digression-sns-share-eyecatch-640x426.png)
テーマLuxeritasでSNSシェアボタンを追加したらLighthouseのAccessibilityが減点されたのでCSS貼った件
LuxeritasのSNSシェアボタンを記事に貼ったらLighthouseのAccessi ...
![Thumbnail of post image 158](https://www.sonohigurashi.blog/wp-content/uploads/2021/07/20210730-digression-enlighter-eyecatch-640x426.png)
Enlighter - Customizable Syntax Highlighterのカスタマイズができなかったので自力でCSS書いた件
コードを記事に貼ったらLighthouseのAccessibilityが減点された。プラグ ...
![Thumbnail of post image 036](https://www.sonohigurashi.blog/wp-content/uploads/2021/07/20210723-digression-pwa-eyecatch-640x426.png)
Faviconの画像がjpg形式だとPWA(Progressive Web Apps)化が失敗する件
サイトのPWA化後Lighthouseで確認するも失敗。エラーを確認すると画像の形式に問題 ...
![Thumbnail of post image 189](https://www.sonohigurashi.blog/wp-content/uploads/2021/07/20210722-digression-sitemap-eyecatch-640x426.png)
テーマLuxeritasのサイトマップテンプレートで作ったページにnoindexがついてた件
Luxeritasのサイトマップテンプレートで作ったページにnoindexがついていたのが ...