Support » Plugin: AMP » Display subtitles

  • Resolved YuriV


    Hi, thanks for the great and clean plugin.

    On our site we’re using a small plugin for displaying subtitles. On single.php we load the subtitles with this code:

    <?php the_subtitle(); ?>

    Is there a way to load these subtitles on the AMP-pages as well? And what code should we use?

    Thanks in advance.


Viewing 1 replies (of 1 total)
  • Plugin Author Weston Ruter


    I suggest trying the new theme compatibility mode in v1.0, now available in release candidate 3. In the new version of the plugin, it can re-use your active theme’s templates and stylesheets, along with whatever modifications you make to them, and serve them as AMP. Once you have installed 1.0-RC3 (the ZIP file from GitHub), then go to the AMP settings screen and switch from Classic mode to Paired mode.

    Note that since AMP does not allow custom JavaScript, the plugin will strip it out if your have a theme or plugin that enqueues any. In general this should leave the site behaving as if JavaScript is turned off in the browser, and if the theme has graceful no-script fallbacks, then this should work well.

    Also be aware that AMP limits the amount of CSS to 50KB. It tries its best to strip out CSS that is not needed (tree shaking), but if it can’t then it will opt to exclude CSS once the 50KB limit is reached.

Viewing 1 replies (of 1 total)
  • The topic ‘Display subtitles’ is closed to new replies.