Home › Forums › Jevelin Theme › AMP Validation errors
Home › Forums › Jevelin Theme › AMP Validation errors
There are 3 AMP validation errors that break the JS for the mobile view of the portfolio (screenshot). WHen AMP is disabled, portfolio is displayed correctly. I think this is a bug.
Running latest version of theme with recommended plugins only. WP version 6.3
ERRORS…….:
Invalid script: jquery.min.js
Status<span class=”status-text”>Removed (Unreviewed)</span>Information
AMP does not allow the use of JS <script>
tags unless they are for loading AMP components, which are added automatically by the AMP plugin. For any page to be served as AMP, all invalid script tags must be removed from the page. Instead of custom or third-party JS, please consider using AMP components and functionality such as amp-bind and actions and events (as opposed to JS event handler attributes like onclick
). Some custom JS can be added if encapsulated in the amp-script. Learn more about how AMP works.
If all invalid markup is “removed” the page will be served as AMP. However, the impact that the removal has on the page must be assessed to determine if the result is acceptable. If any invalid markup is “kept” then the page will not be served as AMP.
Error codeDISALLOWED_TAG
Invalid markup<mark><script … ></mark>
Element attributes
<table class=”element-attributes”>
<tbody>
<tr>
<th class=”has-attr-value”>type
</th>
<td>text/javascript
</td>
</tr>
<tr>
<th class=”has-attr-value”>src
</th>
<td>https://###/wp-includes/js/jquery/jquery.min.js
</td>
</tr>
<tr>
<th class=”has-attr-value”>id
</th>
<td>jquery-core-js
</td>
</tr>
</tbody>
</table>
Element namescript
Parent elementhead
Invalid script: js_composer_front.min.js
Status<span class=”status-text”>Removed (Unreviewed)</span>Information
AMP does not allow the use of JS <script>
tags unless they are for loading AMP components, which are added automatically by the AMP plugin. For any page to be served as AMP, all invalid script tags must be removed from the page. Instead of custom or third-party JS, please consider using AMP components and functionality such as amp-bind and actions and events (as opposed to JS event handler attributes like onclick
). Some custom JS can be added if encapsulated in the amp-script. Learn more about how AMP works.
If all invalid markup is “removed” the page will be served as AMP. However, the impact that the removal has on the page must be assessed to determine if the result is acceptable. If any invalid markup is “kept” then the page will not be served as AMP.
Error codeDISALLOWED_TAG
Invalid markup<mark><script … ></mark>
Element attributes
<table class=”element-attributes”>
<tbody>
<tr>
<th class=”has-attr-value”>type
</th>
<td>text/javascript
</td>
</tr>
<tr>
<th class=”has-attr-value”>src
</th>
<td>https://####.co/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js
</td>
</tr>
<tr>
<th class=”has-attr-value”>id
</th>
<td>wpb_composer_front_js-js
</td>
</tr>
</tbody>
</table>
Element namescript
Parent elementbody
Invalid script: vc-waypoints.min.js
Status<span class=”status-text”>Removed (Unreviewed)</span>Information
AMP does not allow the use of JS <script>
tags unless they are for loading AMP components, which are added automatically by the AMP plugin. For any page to be served as AMP, all invalid script tags must be removed from the page. Instead of custom or third-party JS, please consider using AMP components and functionality such as amp-bind and actions and events (as opposed to JS event handler attributes like onclick
). Some custom JS can be added if encapsulated in the amp-script. Learn more about how AMP works.
If all invalid markup is “removed” the page will be served as AMP. However, the impact that the removal has on the page must be assessed to determine if the result is acceptable. If any invalid markup is “kept” then the page will not be served as AMP.
Error codeDISALLOWED_TAG
Invalid markup<mark><script … ></mark>
Element attributes
<table class=”element-attributes”>
<tbody>
<tr>
<th class=”has-attr-value”>type
</th>
<td>text/javascript
</td>
</tr>
<tr>
<th class=”has-attr-value”>src
</th>
<td>https://####/wp-content/plugins/js_composer/assets/lib/vc_waypoints/vc-waypoints.min.js
</td>
</tr>
<tr>
<th class=”has-attr-value”>id
</th>
<td>vc_waypoints-js
</td>
</tr>
</tbody>
</table>
Element namescript
Parent elementbody
Hi there,
Those errors seems to be related to the WPBakery page builder plugin. Most likely if you will disable it the errors will go away. Can you please check that?
Best regards,
Shufflehound team