シードプロッド最新ニュース

ビジネスの成長に役立つWordPressのチュートリアル、ヒント、リソース

パスワードで保護されたページをカスタマイズする

WordPressでパスワードで保護されたページをカスタマイズする方法 

執筆者 著者アバター ステイシー・コリン
著者アバター ステイシー・コリン
ステイシーはWordPressとデジタルマーケティングについて10年以上、その他のトピックについてはもっと長い間執筆している。また、ウェブデザイン、ユーザーエクスペリエンス、SEOにも造詣が深い。
     レビュー reviewer avatar Turner John
reviewer avatar Turner John
ジョン・ターナーはSeedProdの共同設立者です。彼は20年以上のビジネスと開発の経験があり、彼のプラグインは2500万回以上ダウンロードされています。

As a writer, I’ve always used WordPress’s password protection feature to lock pages with sensitive information I’m working on. It’s a useful way to keep drafts and confidential content away from the public. But I’ve often struggled with making that password-protected page look good.

The default password-protected page isn’t very appealing—it looks plain and might not leave the best impression if visitors stumble upon it. It doesn’t match the style or professionalism of your website, and that can be jarring.

It got me thinking about how you can make those pages more user-friendly and aligned with your site’s branding.

In this guide, I’ll share the solution I found to customize the appearance of your password-protected WordPress pages without writing any code. This way, you can keep your site’s look consistent and ensure that even the protected pages offer a positive experience for your visitors.

Methods to Customize Password Protected Pages in WordPress:

Why Customize a Password Protected Page in WordPress?

If you want to create exclusive content on your WordPress site that only members or clients can access, WordPress’s password protection feature is a handy tool. It allows you to protect a WordPress page or even your entire website easily.

However, the default design for a password protected page is quite basic. It’s just a plain box asking for a password:

デフォルトのWordPressパスワード保護ページ(カスタマイズなし

This is where customization can help. By tailoring the look and feel of password protected pages, you can:

  • Create a more engaging experience for your visitors.
  • Keep a consistent and professional brand identity.
  • Guide users seamlessly towards entering the password or taking desired actions.

With this in mind, I’ll show you how to enable password protection and ways to customize the default page, specific pages, different sections, and your entire website.

Before diving into the customization methods, let’s first look at how to password protect a page in WordPress.

WordPressのページをパスワードで保護する方法

You can password protect WordPress pages using the default WordPress visibility settings by following these steps:

  1. 保護したいページまたは投稿を開く
  2. Publishメタボックスで、Visibilityオプションをクリックします。
  3. ドロップダウンメニューからパスワード保護を選択します。
  4. 保護されたコンテンツにアクセスするためにユーザーが入力するパスワードを入力します。
  5. 青いPublishボタンをクリックして変更を保存します。

You now know how to password protect your WordPress page. After saving your changes, you can visit your site and see the password protected page in action:

Default password protected page example

Now, let’s see how to customize WordPress password-protected pages.

1. Customize the Default Password-Protected WordPress Page with CSS Hero

When password protect your WordPress page from the WordPress editor, your page inherits the styling from your WordPress theme.

To customize it, you can use a visual editor plugin like CSS Hero. It lets you edit the CSS of any page without editing the code.

First, get CSS Hero here and install the plugin on your website. Then, navigate to your password-protected page in WordPress.

ページ上部のWordPress管理バーから、CSSヒーローでカスタマイズオプションをクリックします。

CSSヒーローでパスワード保護ページをカスタマイズする

これは、あなたのWordPressページを編集し、カスタマイズするためのシンプルなポイントアンドクリックのビジュアルエディタを明らかにする。

WordPressのパスワード保護ページをカスタマイズするためにCSSヒーローエディタを使用する

With CSS Hero, you can customize various elements of your password-protected page, including:

  • Typography: Change font styles, sizes, and colors for the page title, form labels, and other text elements.
  • Form Elements: Modify the appearance of the password input field, including its border, background color, and placeholder text.
  • Button Design: Customize the submit button with different colors, hover effects, rounded corners, or even add icons.
  • Layout Adjustments: Alter the positioning and spacing of elements, add padding or margins, and adjust the overall layout of the form.
  • Background Effects: Beyond simple colors, you can add gradients, patterns, or even background images to the entire page or specific sections.
  • Responsive Design: Ensure your customizations look good on all devices by adjusting styles for different screen sizes.

ヘッダーをクリックすると、左側にオプション・パネルが開きます。次に、カラーピッカーツールから色を選択することができます。

ヘッダーのCSSをカスタマイズする

Click your page’s background. You can change it by choosing a color or gradient from the list, or you can add your own background image.

パスワード保護されたページに背景グラデーションを追加する

CSS Heroを使うことの欠点は、コンタクトフォーム、サインアップフォーム、ソーシャルボタンなどの要素を追加できないことです。それらについては、以下のSeedProdメソッドを使用することをお勧めします。

ページのカスタマイズを続け、さまざまな要素をクリックし、カスタムカラーやフォントを追加します。

デザインに満足したら、Save and Publishボタンをクリックします。その後、画面右上の終了アイコンをクリックします。

Save Changes をクリックし、quit をクリックしてページデザイナーを終了します。

これで、新しく編集されたロックされたページデザイン(パスワードフォーム付き)が表示されます。

CSS HeroでカスタマイズされたWordPressのパスワード保護ページ

2. Customize Specific Password Protect WordPress Page with SeedProd

Customizing a specific password protected page is much easier with SeedProd. It’s the best WordPress website builder plugin with a front-end visual editor.

SeedProd ドラッグ&ドロップWordPressウェブサイトビルダー

For this guide, we’re using SeedProd Pro because it includes Access Controls that let you restrict access to pages you password protect. This ensures only the people you want can see the pages you’re working on. You can then use its advanced customization options to change the page design.

SeedProd offers extensive customization options for your password-protected pages:

  • Templates and Layouts: Choose from pre-designed templates or create your own custom layout using the drag-and-drop interface.
  • Typography: Access a wide range of fonts and typographic controls for all text elements on your page.
  • Color Schemes: Apply custom color palettes to your entire page or individual elements.
  • Form Customization: Design custom password input fields and submit buttons with various styles and effects.
  • Advanced Design Options: Add custom backgrounds, overlays, borders, and even animations to your page elements.
  • Responsive Controls: Adjust your design for different devices to ensure a consistent look across all screen sizes.

For a full walk-through, please see the video tutorial below:

Alternatively, you can follow these written instructions:

First, get started with SeedProd here. Then follow these instructions for installing the SeedProd page builder plugin.

次に、近日公開またはメンテナンスモードのランディングページを作成します。これらはウェブサイトを制限するための特別なアクセスコントロールページです。

To do that, click the SeedProd icon from your WordPress admin. This takes you to the SeedProd dashboard, where you can add new pages and edit them in the customizer.

seedprodランディングページ・ダッシュボードの概要

その後、「Set Up a Coming Soon Page」ボタンをクリックします。

SeedProdでパスワードで保護された近日公開ページを設定する

次に、ページデザインの出発点として使用するカスタムテンプレートがいくつか表示されます。

wordpressパスワード保護ページカスタムテンプレート

この例では、Swipecoming soonテンプレートを使用します。テンプレートを起動するには、サムネイルにマウスカーソルを合わせ、ティックアイコンをクリックします。

チェックアイコンをクリックすると、ドラッグ&ドロップページビルダーで近日公開のページテンプレートが起動します。

Your coming soon page template will appear in the drag-and-drop page builder. Here, you can begin to customize the password protected page to suit your brand.

SeedProd coming soon ランディングページ・ビルダー

SeedProdのページビルダーはWordPressのカスタマイザーのようにリアルタイムで変更が可能です。

It also has WordPress blocks. These blocks make it easy to customize the password-protected page without prior design experience.

見出し、ボタン、画像、動画、仕切りなどの標準ブロックから選択できます。

SeedProdの標準コンテンツ要素

また、ランディングページのブロックを使って、リードやコンバージョンを増やすこともできる:

  • 景品- RafflePressの景品ブロックをあなたのページに追加しましょう。
  • コンタクトフォーム- WPFormsで作られたコンタクトフォームをランディングページに追加します。
  • オプチンフォーム- カスタムのテンプレートとスタイルを備えたサインアップフォームでリードを増やす
  • カウントダウンタイマー- ライブカウントダウンで緊迫感を演出。
  • ソーシャルボタン- ソーシャルプロフィールと共有ボタンでソーシャルメディアのフォロワーを増やしましょう。
  • 他にもいろいろある。
ランディングページ専用のブロックを使用して、ウェブサイトのコンバージョンを増やします。

左から右のライブページプレビューにドラッグすることで、これらの機能をページに追加することができます。

次に、任意の要素をクリックしてコンテンツを編集します。カスタムブロックテンプレートを選択し、高度な変更を加えることもできます。

あなたのページにパスワード入力フィールドを含めることができます。ユーザーは、保護されたコンテンツにアクセスするために、送信をクリックする前にパスワードを入力する必要があります。

これを行うには、カスタムHTMLブロックをライブページエディタにドラッグします。

カスタムHTMLランディングページ・ブロックを追加する

次に、ブロックをクリックしてコンテンツを編集します。次に、このショートコードseed_bypass_formをコンテンツエディターに角括弧で囲んで貼り付けます。

seedprodのパスワード・フィールド・ショートコードを入力する。

You won’t see the password input field until you preview your live page. Then, the system will ask users to “please enter your password.”

Set Up Password Protection on Specific Pages

After customizing your page with the bypass form shortcode, you’ll want to set up password protection for specific pages of your WordPress site.

To do this, click the Page Settings tab at the top of the builder and select the Access Controls heading. Next, add a password in the ‘Bypass URL’ field. This acts as a password for your page, and also a link clients and team members can use to get past the password protection and access the page.

SeedProdのアクセス制御

You can also exclude pages from password protections, such as your dashboard, admin, and login, so you don’t get locked out of your site.

Now, you need to decide which pages will be password protected. This could be pages with members-only content, lead magnets, or even an unfinished landing page.

Simply find the ‘Include URLs’ heading and add the WordPress password protected page you want to restrict in the text box. For example, you can add specific landing pages and posts, or even use this feature for password protected categories.

password protect specific pages in WordPress

保護されたWordPressページのカスタマイズが完了したら、いよいよ公開です。

パスワードで保護されたページを公開するには、「保存」ボタンの隣にある下向き矢印をクリックし、「公開」をクリックします。

パスワードで保護されたランディングページをWordPressで公開する

ページが公開されたことを知らせるライトボックスのポップアップが表示されます。そして、「ライブページを見る」ボタンをクリックして、変更をプレビューすることができます。

パスワードで保護されたカスタムページをプレビューする

ページをライブにするには、SeedProdダッシュボードに戻ります。Coming Soon Modeセクションで、InactiveトグルをActiveに切り替えます。

パスワードで保護された近日公開のカスタムページを有効にする

パスワードで保護されたカスタムページが公開されました!

WordPressでカスタマイズしたパスワード保護ページの例

ページを再度変更したい場合は、SeedProdのページ編集ボタンをクリックしてください。すると、ページのメッセージ、コンテンツ、スタイルを再度変更することができます。

Bonus: Create a Custom Password Protected Page for Your Entire Website

You can also use SeedProd to customize and show a password protected page on every page of your website. That way, users will need to enter a password to access any of your content.

The steps to password protect your WordPress website are the same as above. Go to SeedProd » Landing Pages, and in the Coming Soon panel, click Edit Page.

edit coming soon page

From there, click the Page Settings tab and find the Access Controls heading. Here, scroll to the ‘Include/Exclude URLs’ area and click the ‘Show on the Entire Website’ radio button.

Password protect entire WordPress site

Once you’ve saved the changes, your custom password page will appear on every page of your entire site.

Best Practices for Secure Password Protected Pages

Ensuring the security of password-protected pages is crucial for maintaining the integrity of your content and protecting sensitive information. Here are some best practices to follow:

1. Use Strong Passwords

A strong password is the first line of defense for protected pages. Ensure that your passwords are:

  • At least 12 characters long
  • A mix of upper and lower case letters, numbers, and special characters
  • Not easily guessable (avoid using common words or phrases)

2. Regularly Update Passwords

Update your passwords periodically to enhance security. Regular updates reduce the risk of unauthorized access if a password is compromised.

3. Limit Access to Passwords

Restrict who has access to the passwords for your protected pages. Only share passwords with trusted individuals and avoid sending them via unsecured channels.

4. Enable Two-Factor Authentication (2FA)

2 Factor Authentication concept

Where possible, enable two-factor authentication for an added layer of security. 2FA requires users to provide a second form of verification, such as a code sent to their phone, in addition to the password.

5. Monitor Access Logs

Regularly check access logs to monitor who is accessing your protected pages. Look for any unusual activity that could indicate a security breach.

6. Use SSL Certificates

Ensure your website is protected with an SSL certificate. SSL encrypts the data transferred between your website and its visitors, adding an extra layer of security.

Secure SSL certificate example

7. Keep WordPress and Plugins Updated

Regularly update WordPress and any installed plugins to their latest versions. Updates often include security patches that protect against vulnerabilities.

8. Customize Your Login Page

Consider customizing your WordPress login page to make it harder for attackers to target.

Customizing login page example

You can change the URL of the login page or add a security question to the protected form.

9. Backup Your Website

Regular backups are essential. In case of a security breach, you can restore your website to a previous state. Use a reliable backup plugin or service to automate this process.

よくある質問

パスワードで保護されたページのデフォルトテキストを変更できますか?
デフォルトのテキストを変更するには、上記のいずれかの方法で編集してください。変更を保存することを忘れないでください。
パスワード入力欄をカスタマイズすることは可能ですか?
はい、パスワード入力フィールドをカスタマイズすることができます。テーマのスタイルシートにカスタムCSSを追加するか、カスタムCSSを追加できるWPCodeのようなプラグインを使用してください。適切なセレクタで入力フィールドをターゲットにし、希望のスタイルを適用します。
パスワードで保護されたページにカスタム背景画像を追加できますか?
これはSeedProdでできます。グローバル設定を開いてください。次に、カスタム背景画像をコンピュータまたはWordPressメディアライブラリから選択します。
サイトのナビゲーション・メニューにパスワードで保護されたページを追加できますか?
はい、サイトのナビゲーションメニューにパスワードで保護されたページを追加することができます。WordPressのダッシュボードで、外観 " メニューに進みます。そして、保護されたページをご希望のメニューに追加してください。ユーザーがページのコンテンツにアクセスするには、正しいパスワードを入力する必要があります。
パスワードで保護されたページを安全に保つには?


1.強力でユニークなパスワード(文字、数字、記号の組み合わせ)を使用する。
2.ブルートフォース攻撃を防ぐため、ログイン試行を制限する。
3.セキュリティを強化するため、二要素認証を考慮する。
4.脆弱性にパッチを当てるため、WordPress、テーマ、プラグインを常にアップデートする。

そうだ!

WordPressパスワード保護のヒント

You now know how to customize password-protected pages in WordPress.

WordPressで保護されたページをカスタマイズするのは難しいと思われがちですが、その必要はありません。上記の方法を使えば、コードを一行も書くことなく、ロックされた魅力的なページを作成することができます。

PHPファイルを編集したり、テーマファイルを手動で変更する必要はありません。SeedProdの便利なページビルダーを使えば、ゼロから始める必要がなく、オプトインフォームのようなリードジェネレーションに不可欠な要素を盛り込み、ビジネスを成長させることができます。

何を待っているんだい?

WordPressサイトのパスワード保護に関するさらに詳しいヒントは、以下のエキスパートガイドをご覧ください:

お読みいただきありがとうございました!ご質問やご意見がありましたら、お気軽にコメントをお寄せください。

また、YouTubeX(旧Twitter)Facebookでも、ビジネスの発展に役立つコンテンツを配信しています。

著者アバター
ステイシー・コリン ライター
ステイシーはWordPressとデジタルマーケティングについて10年以上、その他のトピックについてはもっと長い間執筆している。また、ウェブデザイン、ユーザーエクスペリエンス、SEOにも造詣が深い。

情報開示私たちのコンテンツは読者支援型です。つまり、あなたが私たちのリンクをクリックした場合、私たちはコミッションを得る可能性があります。私たちは、読者に付加価値をもたらすと信じる製品のみを推薦します。