Viewing 2 replies - 1 through 2 (of 2 total)
  • @arct3 You can add the below to your functions.php file on your active theme to remove the duplicate image. That will leave the image you placed within the body of the post only.

    add_action( 'amp_post_template_css', 'xyz_amp_my_additional_css_styles' );
    function xyz_amp_my_additional_css_styles( $amp_template ) {
            // only CSS here please...
            ?>
    .wp-post-image{
    display:none;
    }
            <?php
    }

    Let me know if that works for you

    @arct3 Did you manage to get the duplicate image removed in your AMP urls? As it’s a theme related issue I will close this support question (the theme you were using places features images inside the body container). At present I don’t see duplicate images on your site, but let me know if you would like me to take another look.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate images’ is closed to new replies.