Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressで「Howdy Admin」を変更・削除する方法(簡単な方法)

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

WordPressの管理バーに表示される「Howdy」の挨拶を変更または削除したいですか?

多くの人は、実生活で “howdy “という言葉を使うことはない。もっと親しみやすい挨拶に変えてみてはいかがでしょうか。サイト翻訳が間違ったことをしないようにしたいとか、もっとプロフェッショナルな挨拶にしたいとか。

この投稿では、3つの簡単な方法で「Howdy Admin」を変更または削除する方法を紹介します。

How to Change or Remove Howdy Admin in WordPress

なぜ「Howdy Admin」を変更または削除するのか?

ユーザーがWordPressサイトのダッシュボードにログインするたびに、「Howdy」という言葉の後に自分の表示名が続きます。

例えば、ジョン・スミスがログイン中なら、画面右上に『Howdy, John Smith』と表示される。

Howdy, John Smith

その挨拶はユーザーによっては不自然に聞こえるかもしれない。Howdy」は「ごきげんよう」の略だが、多くの英語話者はこの言葉を使わない。場違いであったり、時代遅れであったり、あるいは少し煩わしく聞こえるかもしれない。

英語を母国語としない人の中には、このキーワードを見たことすらない人もいるかもしれない。

幸いなことに、挨拶はWelcome(ようこそ)、Hello(こんにちは)、Hey(やあ)、Hi(こんにちは)など、より親しみやすい響きに変更することができます。また、ユーザーの表示名だけを表示させるために、完全に省略することもできます。

Howdy Admin’の変更・削除はとても簡単ですので、下記の動画をご覧いただくか、文章での説明がお好きな方はスクロールダウンしてください。

動画チュートリアル

Subscribe to WPBeginner

WPCodeを使用して「Howdy Admin」を変更または削除する(推奨)

テーマのfunctions.phpファイルにカスタムコードスニペットを追加することで、プラグインを使用せずに「Howdy Admin」を変更または削除することができます。

テーマのPHPファイルを編集することは、経験の浅いユーザーにはお勧めしません。小さなミスでもサイトを壊してしまう可能性があるからです。

そのようなことが本当に〜してもよいですか?WPCodeを使用して、あなたのサイトから「Howdy Admin」を変更または削除することができます。WPCodeは、WordPressで利用可能な最も強力なコードスニペットプラグインであるだけでなく、事前に作成されたコードスニペットの膨大なライブラリが付属しています。

始める前に、無料のWPCodeプラグインをダウンロードしてインストールする必要があります。詳しくは、WordPressプラグインのインストール方法のステップバイステップガイドをご覧ください。

有効化したら、コード・スニペット ” ライブラリにアクセスし、検索バーに「howdy」と入力してください。その結果、「Change Howdy Admin in Admin Bar」というコードスニペットが表示されます。

スニペットにマウスオーバーし、「スニペットを使用」をクリックするだけで、サイトにスニペットが追加されます。

Select the Howdy snippet in WPCode

スニペットの編集」ページに移動します。WPCodeライブラリからコード・スニペットを使用しているため、オプションや設定はすべて入力されています。

必要なのは、トグルを「有効化」にクリックしてから「更新」ボタンを押すだけです。すぐに画面右上の「Howdy Admin」が「Welcome Admin」に変わっているのがわかるだろう。

Activate the snippet to replace Howdy Admin

挨拶をカスタマイズするには、個別引用符で囲んだ単語を’Howdy’から好きな言葉に変更するだけです。例えば、$new_howdy = 'Welcome,';$new_howdy = 'Hi there,';に変更すると、メッセージは “Hi there, Admin.” となります。

挨拶文を完全に削除して、ユーザー名だけを隅に表示することもできます。これを行うには、個別引用符で囲まれた部分をすべて削除し、単に$new_howdy = ''; となるようにします。

Completely removing howdy

こんにちは」の挨拶に戻したい場合は、スイッチを「非アクティブ」に切り替え、もう一度「更新」をクリックしてください。これでWPCodeスニペットは実行されなくなりますが、好きなときにいつでも再開することができます。

この投稿が、WordPressバックエンドの挨拶をカスタマイズする方法を学ぶのにお役に立てば幸いです。次は、最適なWordPressホスティングサービスの選び方や、サイトを成長させるために必須のWordPressプラグインのリストをご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

27件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Moinuddin Waheed says

    Thanks for this guide on removing howdy message from the dashboard.
    I had to handover the dashboard to my client and I thought of changing this message because he may not be aware of hwody message.
    So, I wanted to create personalised greeting.
    However, It never felt alien to me to use howdy.

  3. Jiří Vaněk says

    Before reading this article, as a non-native speaker, even though I speak English relatively well, it never occurred to me what the word ‘howdy’ actually means. And that’s while I use WordPress on a daily basis.

  4. simon says

    hello can anyone help me?
    I want to translate a string in wordpress theme
    //
    if($mt_o[‘mt_rewrite_doctor_name’]!=””) { $mt_cpt_doctors_name = $mt_o[‘mt_rewrite_doctor_name’]; } else { $mt_cpt_doctors_name = “Staff'”;}
    //
    i translated such :
    if($mt_o[‘mt_rewrite_doctor_name’]!=””) { $mt_cpt_doctors_name = $mt_o[‘mt_rewrite_doctor_name’]; } else { $mt_cpt_doctors_name = __(‘Staff’,’madza_translate’);}
    but it does not work!!!!
    can you guy help me ? plz plz

  5. Ast says

    It doesnt work,,, after I use this code, wordpress (Version 4.2.2) admin panel cant load,, should remove this code..

  6. David Labbe says

    There is a much easier way to do this by using the old menu node values:

    function np_replace_howdy($wp_admin_bar){

    //New text to replace Howdy
    $new_text = ‘Welcome’;

    //Call up the ‘my-account’ menu node for current values.
    $my_account = $wp_admin_bar->get_node(‘my-account’);

    //Replace the ‘Howdy’ with new text with string replace
    $new_title = str_replace(‘Howdy’, $new_text, $my_account->title);

    //Rebuild the menu using the old node values and the new title.
    $wp_admin_bar->add_menu(array(
    ‘id’ => $my_account->id,
    ‘parent’ => $my_account->parent,
    ‘title’ => $new_title,
    ‘href’ => $my_account->href,
    ‘group’ => $my_account->group,
    ‘meta’ => array(
    ‘class’ => $my_account->meta[‘class’],
    ‘title’ => $my_account->meta[‘title’],
    ),
    ));
    }

    add_action(‘admin_bar_menu’, ‘np_replace_howdy’, 999);

    See my gist:

    https://gist.github.com/Davidlab/8460a3cec27cb585d95c

  7. Gauranga says

    I tried but it didn’t work.. kept saying error and when tried to repair it, my WordPress admin panel couldn’t load any more :-( I had to switch back to my back up functions.php file (fortunately i had it). Perhaps i made a mistake but it would be nice to have something that is really copy and paste for neophytes like myself with clear instructions instead of expecting everyone to know something else that may be common sense for those who know codes. Gauranga.

    • WPBeginner Support says

      Yes, you can. It may be a little complicated but do able. You will need to create an array in PHP with greetings in different languages. Then randomly pick a string from the array and use it with the rest of the code above.

      管理者

  8. iTechRevo says

    Hey in the admin panel howdy can be edited but on the front end howdy is still there and cannot be changed so what should i do to edit it?

  9. graphicagenda says

    @senlinonline: That is a great snippet! but it reverts back to the howdy for the frontend admin bar while logged in.

  10. senlinonline says

    Changing “Howdy” can actually be done quite a bit simpler than the above code. Add this to your functions.php (or functionality.php or any other file): /** CHANGE HOWDY – http://wpmu.org/daily-tip-how-to-change-the-wordpress-howdy-message-to-a-custom-welcome/ **/add_filter(‘gettext’, ‘change_howdy’, 10, 3);function change_howdy($translated, $text, $domain) { if (!is_admin() || ‘default’ != $domain) return $translated; if (false !== strpos($translated, ‘Howdy’)) return str_replace(‘Howdy’, ‘Welcome back’, $translated); return $translated;}/** END CHANGE HOWDY **/

  11. Sean 'Wordpress Guy' Vosler says

    I know, actually had a client ask me if it was made by a southern company because when I was signed it in said ‘howdy’, had a good laugh, but def something to do if your not positive on how a client might react

  12. WPBeginner - WordPress for Beginners says

    Sean ‘WordPress Guy’ Vosler for the sake of customization? Not everyone thinks that Howdy is cool. Greg said he will be sending us a more detailed tutorial on how he added more links and such.

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。