ホーム > wordpress > 404ページ編集

404ページ編集

2012 年 2 月 16 日 コメントをどうぞ コメント

「見つかりませんページ」なんてほとんど意味は無いんだろうけど、なんとなく編集してみたくなる。

見ることもほとんどないだろうけど、なんかこだわりで。

とは言ってもきれいにできるわけじゃないが・・・。

 

wordpressの404ページ作成は簡単。

各テーマディレクトリの中に「404.php」を置いてやれば良いだけのようだ。

早速、編集。

元あるページをベースに、ちょこっとメッセージと画像を編集。

大きく変更しないので、簡単。

 

が、他言語対応の場合、表示文言は英語で書かれていて翻訳を通して日本語表示になっているらしい。

他のメッセージに影響が出てもわからないので、今回は日本語翻訳ファイルを編集してメッセージを変えることに。

ファイルは、テーマの中のlanguage の中に「.po」と「.mo」が存在。

po がソースで mo が翻訳用のファイルのようだ。

この中の日本語 「ja.po」を編集し、「ja.mo」を作成してuploadすればOK.

 

「.mo」の作成にはpoeditを使用。

こんな感じ、編集もできる。

poeditキャプチャ

編集はエディタでも楽にできるのでどちらでも。

 

あとはpoeditで保存を選べば、勝手に「.mo」が作成される。

されない場合は、「ファイル⇒設定⇒編集タブ」の「保存時に.moファイルを自動生成する」のチェックを確認。

 

これで、とりあえず完成なので、アップロードして確認。

正常ですね。

 

ちなみにデフォルトのテーマには404ページが無いようです。

 

関連する記事

, the captain http://www.cheap-nfl-nike-jerseys.com of a tugboat lost control of the cheap ray bans vessel and collided with the Interstate 40 bridge on the Arkansas River in Oklahoma. What followed was a scene of total chaos 14 people died in the disaster. Authentic Jerseys Sale Folks nearby and even the tugboat crew immediately began to render aid to those in the water. You know, like people are wont to do in an emergency.National Pizza Month is ComingA quick word on National Pizza Month which is October. It’s coming! I can’t believe it’s already here and that I’ll be able to eat even more delicious, cheap pizza from my favorite brands. Any time you have a whole month to celebrate something so wonderful as pizza, you should fully embrace with arms wide open and eat so much pizza that you decide to take the next month off.The World Football League was another short lived American football league, started by Gary Davidson, who had helped the start of the American Basketball and World Hockey Association. The league played in 1974 and a part of http://cheapjerseysupply.com 1975. Their ambition was to bring American football to the world. George Mikan, a former star player in the NBA, was the first commissioner of this league. ABA fielded 11 teams in its first season, acquiring a huge number of fan following due to its wide open style of play.This custom built log home is the perfect getaway. It is paradise in every season!! Enjoy the mountain air, and lake and mountain views, or watch the stars while you relax in the hot tub or sit by the campfire on the spacious patio. There is a feeling of being a million miles away, while the friendly towns of Kalispell, Bigfork and Whitefish are all within an hour’s drive. Home is spacious yet still warm and cozy feeling, much like a private lodge. Rock fireplaces grace both the great room and family room, and the entire home surrounds you in a feeling of luxury. The best part of all: NO HIDDEN FEES OR EXTRA CHARGES! It’s all included.SCROLL TO SECTION JUST ABOVE THE PHOTOS FOR A LINK TO OUR VIDEO !!Benefit DaysNew Jersey law does not require that employers provide fringe benefits, such as vacation, sick or personal time off or severance and holiday pay. Employers that choose to provide these benefits must adhere to the terms of the agreement or policy. New Jersey has a Family and Medical Leave Act that allows qualified employees to Fake Oakleys Cheap take up to 12 weeks of job protected leave if they have a qualifying condition, such as to care for their newborn.Even without Gronk, the Patriots should wipe the floor with the Niners defense. A good performance by Colin Kaepernick against Arizona should give them a chance against the wholesale jerseys china New England defense after struggling last Sunday. Of the 71 losses Cheap Jerseys the Patriots have suffered in the Bill Belichick era, only eleven times did they have consecutive losses.

関連する記事

カテゴリー: wordpress タグ: , ,
  1. コメントはまだありません。
  1. トラックバックはまだありません。