Kadence Blocks「Advanced Gallery」の表示が設定と違う。
編集ページでは正常に表示されているのにプレビューすると、
この配置でのキャプションが真っ白で見えない、読めない。
![](https://kenji.feeling.jp/wp-content/uploads/2021/02/k-gallery1-360x314.jpg)
キャプションのCSSを見ると
.kadence-blocks-gallery-item__caption {
color: #fff;
}
それに、 background: #fff;
背景が白で文字が白だから見えるはずがない。
文字か背景の色を変えるしかなく、解決策としてCSSを書き換えることにした。
Kadence Blocksを更新しても設定が戻らないように、プラグイン「Simple CSS」に記述。
![](https://kenji.feeling.jp/wp-content/uploads/2021/02/k-gallery2-360x296.jpg)
.kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
color: #606060;
}
.kb-gallery-caption-style-below .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
padding: 3px;
}
.kb-gallery-caption-style-cover-hover.kb-gallery-id-_e4ba78-ad .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption, .kb-gallery-caption-style-below.kb-gallery-id-_e4ba78-ad .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
background: #fff;
}