• Resolved pro99

    (@pro99)


    We’re using the Ad Inserter to show different video widgets to desktop and mobile. It works, except we noticed that it is inserting the youtube player by error in the main content of AMP HTML pages. AMP content is declared with the below code. Inside the content for each post is a shortcode from a recipe plugin, and Ad Inserter thinks that this shortcode is a widget area. This only happens on AMP pages.

    <div class=”amp-wp-article-content”>
    <?php echo $this->get( ‘post_amp_content’ ); // amphtml content
    ?>
    </div>

    Is there a way to exclude Ad Inserter from executing in AMP pages? Other solution?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Inserts content by error in AMP pages’ is closed to new replies.