• Resolved takashiyogi01

    (@takashiyogi01)


    AMPプラグイン導入後、
    全ての記事にある「目次の開閉リンク」が表示されなくなりました。
    リンク先の記事はその一部です。

    原因
    AMPプラグインを導入前は、
    ①目次が閉じている状態
    ②目次の「開く」というテキストリンクをクリックすれば、目次一覧が表示されていました。

    改善したいこと
    AMPプラグインは導入しつつ、
    ①②の元の状態に戻したいです。

    よろしくお願いいたします。

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thanks for reaching out. It looks like the functionality used to toggle the visibility of Table of Contents Plus is JavaScript based, meaning it’s not AMP compatible.

    While there are some AMP compatible alternatives in block based plugins and individual table of contents specific plugins please allow me some time and I’ll check whether I can provide you with a working solution. I’ll follow up with you later in the week.

    Thread Starter takashiyogi01

    (@takashiyogi01)

    良心的な対応をしてくださりありがとうございます。
    お待ちしております。

    You’ll find 2 update files to ensure the same working toggle for Table of Contents plus. I couldn’t find an easy way to overwrite the plugin files or functions.

    In order to use please replace the existing toc.php and screen.min.css files with your table of contents plugin folder with the ones from the gist. Ideally you could make a fork of that plugin to ensure plugin updates won’t overwrite the modified files.

    If the above doesn’t suit you may consider using the Simple Table of Contents block, or another AMP compatible alternative.

    Thread Starter takashiyogi01

    (@takashiyogi01)

    別の AMP 互換の代替手段の使用を検討したいのですが、オススメはありますか?

    Have you tried using the Simple Table of Contents block? You could also reach out to the author of Table of Contents Plus.

    Thread Starter takashiyogi01

    (@takashiyogi01)

    ありがとうございます。いまから使用してみます。
    そのあとに互換性がなければ、作成者へ連絡をとってみます。
    ありがとうございます。

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘AMPプラグインを導入後、Table of Contents Plusにバグが起きた’ is closed to new replies.