The attribute ‘width’ in tag ‘amp-facebook-comments’ is set to the invalid value
-
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="https://www.sciencenewsbd.com/11-%e0%a6%b8%e0%a6%b0%e0%a7%8d%e0%a6%ac%e0%a6%95%e0%a6%be%e0%a6%b2%e0%a7%87%e0%a6%b0-%e0%a6%b8%e0%a6%b0%e0%a7%8d%e0%a6%ac%e0%a6%b6%e0%a7%8d%e0%a6%b0%e0%a7%87%e0%a6%b7%e0%a7%8d%e0%a6%a0-%e0%a6%ac/" 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 ThemesThe page I need help with: [log in to see the link]
- The topic ‘The attribute ‘width’ in tag ‘amp-facebook-comments’ is set to the invalid value’ is closed to new replies.