lightbox-gallery 背景色などを変更

lightbox-gallery の背景色などの色を変更。

まずは枠の色。白から明るいグレーに。
/plugins/lightbox-gallery/ にある lightbox-gallery.css
を現在使用しているテーマのディレクトリにコピーする。
そうするとテーマ内のcssを優先してくれるそうな。
で、背景色#fffを文字検索すると2箇所あるのでこれを変更。
#eee に。

・lightbox-btn-close.gif を編集する。
次にボタン類を同じ背景色になるようphotoshopなどのペイントソフトで作り直す。
自分の好きなフォントで作れば完璧。とりあえず今使っている3つのgif画像だけでいいでしょう。

・次は画面全体の背景色と透過の変更
/wp-content/plugins/lightbox-gallery/js にある jquery.lightbox.js を、
ファイル名を変えて jquery.lightbox-org.js などの名前で保存。オリジナルを残しておく。

始めのほうの行、
// Configuration related to overlay を見つける。すぐ下の行の2箇所を変更する。

*************************************
略
overlayBgColor:	'#000',		// (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
overlayOpacity:	0.8,		// (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9*************************************

************************************* 略 overlayBgColor: '#000', // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color. overlayOpacity: 0.8, // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9 略 *************************************

背景色 #000 と透過率 0.9 を好みで指定する。
最後に、lightbox-gallery/lightbox-gallery.php の機種などの文字を削除。スッキリした表示にした。

曜日表示だけを英語表記にしてみる
poedit.exe で /wp-content/languages の ja.po の日本語の日曜日~土曜日の文字を変更する。

保存すると、ja.mo も同時に出力されるのでいっしょに FTPソフトでUPLOADする。

※最初、保存時にエラーが出た。1113行だったかな・・。元々の ja.po にエラーがあったようだ。sが抜けていたようだ。
追記:これは後日 worfpress の日本語サポートメンバーにメールで報告したので、現在は修正されている。

・single.php と page.php のテンプレートに、日付と時刻表示の表示方法を以下のように変更。

*************************************
<p><?php the_date('Y.m.d. D  '); the_time('H:i'); ?></p>
*************************************

************************************* <p><?php the_date('Y.m.d. D '); the_time('H:i'); ?></p> *************************************

コメントを残す

モバイルバージョンを終了