Support » Plugin: Encyclopedia / Glossary / Wiki » target="_self" ist invalid in AMP Seiten

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dennis Hoppe


    To make long story short: This plugin generates HTML5 and not “AMP HTML”.

    I would recommend to create a “pre-parser” which converts HTML5 contents to AMP by removing “invalid” tags and attributes. I guess you will run in the same problem with other plugins, too.


    ich vermute das Problem entsteht, weil sich das Plugin recht spät einbindet (addfilter prio 99). Mit einem kleinen mu-plugin hab ich da Abhilfe geschaffen.

    add_filter( 'the_content', 'prfx_amp_remove_self', 100 );
    function prfx_amp_remove_self( $content ) {
        if (function_exists('is_amp_endpoint') && is_amp_endpoint()) {
            $content = str_replace('target="_self"', '', $content);
        return $content;

    Beste Grüße

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘target="_self" ist invalid in AMP Seiten’ is closed to new replies.