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でエディターのスクロール位置を保持する方法

WordPressで投稿を編集する際、「下書きを保存」を押すとページがリロードされることにお気づきだろうか。つまり、スクロール位置がリセットされ、すべて下にスクロールしなければならなくなるのだ。これは、長い投稿を書くときに最も困ることのひとつだ。私たちはHTMLエディターで記事を書いているので、投稿をプレビューするために下書き保存ボタンを押すことがある。そうするとスクロール位置がリセットされてしまい、気がつくと下まですべてスクロールしてしまっているのだ。この投稿では、WordPressでエディターのスクロール位置を保持するために使用しているプラグインを紹介する。

動画チュートリアル

Subscribe to WPBeginner

動画が気に入らなかったり、もっと説明が必要な場合は、このまま読み進めてください。

あなたがしなければならないことは、Preserve Editor Scroll Positionというプラグインをインストールして有効化することだけです。

Preserve Editor Scroll Position

設定する必要はありません。箱から出してすぐに使えます。すべてにおいて、これはフロントエンドのロード時間に影響を与えないプラグインのひとつです。このようなプラグインが大好きです。このプラグインは、私たちがWordPressインストーラで使用している数多くのプラグインのひとつで、可能な限りスムーズに物事を進めることができます。

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

アバター

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

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

  1. Syed Balkhi

    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. Mith

    Or you can press Ctrl+S (Windows)

    :)

  3. Keith Davis

    Thanks guys.
    Can be oh so annoying trying to find your location after reload.
    Good to know that it has no effect on load time.

    Can this be hard coded?

  4. Gautam Doddamani

    totally worth it…i have experienced similar problems when making a post and previewing it..installing it right away!

返信を残す

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