2016-03-06 1 views
1

Wordpress использует AMP-плагин. В настоящее время получение ошибки The attribute 'type' may not appear in tag 'style amp-custom'.Wordpress AMP plugin eror: атрибут «type» может не отображаться в стиле тегов «amp-custom»

При открытии страницы и гостевой консоли ошибка указывает на атрибут стиля type.

<style type="text/css"> 
img.wp-smiley, 
img.emoji { 
    display: inline !important; 
    border: none !important; 
    box-shadow: none !important; 
    height: 1em !important; 
    width: 1em !important; 
    margin: 0 .07em !important; 
    vertical-align: -0.1em !important; 
    background: none !important; 
    padding: 0 !important; 
} 
</style> 

Этот раздел кода размещен на странице index. Как мне это изменить? Где я могу изменить код Wordpress? Это ошибка темы, и поэтому мне нужно будет связаться с разработчиком темы?

ответ

0

Вот пример

 <!doctype html> 
    <html amp lang="en"> 
     <head> 
     <meta charset="utf-8"> 
     <title>Hello, AMPs</title> 
     <link rel="canonical" href="http://example.ampproject.org/article-metadata.html" /> 
     <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> 
     <script type="application/ld+json"> 
      { 
      "@context": "http://schema.org", 
      "@type": "NewsArticle", 
      "headline": "Open-source framework for publishing content", 
      "datePublished": "2015-10-07T12:02:41Z", 
      "image": [ 
       "logo.jpg" 
      ] 
      } 
     </script> 
     <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> 
     <script async src="https://cdn.ampproject.org/v0.js"></script> 
     </head> 
     <body> 
     <h1>Welcome to the mobile web</h1> 
     </body> 
    </html> 
+0

как это поможет мне хоть? как я могу обновить wordpress с помощью этого нового кода? Этот код в теме или я могу обновить его вручную? –

+1

@ Mlennie Мой плохой, я пропустил тег wordpress, мне не нравится wordpress, поэтому я не уверен, как это делается, но, увидев свой тег стиля, он должен выглядеть следующим образом: