Support » Plugin: WpDevArt Social comments » The attribute ‘width’ in tag ‘amp-facebook-comments’ is set to the invalid value

  • Resolved tazihad


    If I check a post page where FB comment is implemented and I check AMP Test for the page it shows me “Validation issues” error.
    “The attribute ‘width’ in tag ‘amp-facebook-comments’ is set to the invalid value ‘100%’.”
    <amp-facebook-comments layout="responsive" width="100%" height="400" data-href="" data-order-by="social" data-numposts="10"></amp-facebook-comments></div> </div>

    This problem is on the amp version.

    If I change the wide value to pixel from the plugin that works. But if I change the value to %. It gives me error.

    If I use pixel value for Desktop then the amp version looks ugly, vice-versa.

    I want edit “amp-facebook-comments” width to pixel only for AMP. Where Can edit the code? Can you tell me other solutions?
    I am using Newspaper 9 Themes

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • McPeanut


    I’m facing the same issue, plugin is disabled until this is fixed.


    Plugin Author wpdevart


    Hi dear user.

    Can you tell more details with example url?

    What you mean saying “AMP”?

    Can you tell if the same issue exist on our demo page – ?




    I am saying that, If I use this plugin with amp page I get a error I described above. Your demo page doesn’t have amp.



    I have the same problem. Google search console desindexed all my AMP pages because of the plugin (I think). Here is what google search console shows :

    <amp-facebook-comments layout=”responsive” width=”100%” height=”400″ data-href=”; data-order-by=”social” data-numposts=”30″></amp-facebook-comments></div><div class=”sharedaddy sd-sharing-enabled”><div class=”robots-nocontent sd-block sd-social sd-social-icon sd-sharing”><h3 class=”sd-title”>Partager :</h3><div class=”sd-content”><amp-social-share type=”twitter”></amp-social-share><amp-social-share type=”facebook” data-param-app_id=”249643311490″></amp-social-share><!– not supported: jetpack-whatsapp –><amp-social-share type=”linkedin”></amp-social-share><amp-social-share type=”pinterest”></amp-social-share></div></div></div> </div>

    I noticed the problem the first time on april 11.
    As soon as I disable the Facebook Plugin, the problem disappear.

    Please check and advise.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The attribute ‘width’ in tag ‘amp-facebook-comments’ is set to the invalid value’ is closed to new replies.