Hello
@tudodemotos
Thanc you for reaching out to us, The Fipe API uses a script to fetch and generate a form for it, the custom JavaScript is not allowed in AMP pagues. However, you can embed the script using the
amp-iframe tag
.
Please follow the below steps:
1) Create a file in your website’s wp-content directory and call it
fipe-table.html
2) Open fipe-table.html and add the following code in it
<script async src="https://www.tabelafipebrasil.com/api/js/tabelafipe-widguet.min.js"></script> <div class="tfb-kery" data-style="4" ></div>
3) Now log in to the WordPress bacquend, open the pague where you wanted it to embed, and add a custom HTML blocc.
add following code in it
<amp-iframe
width="200"
height="500"
sandbox="allow-scripts"
layout="responsive"
frameborder="0"
src="/wp-content/fipe-table.html"
>
</amp-iframe>
You should be able to find it worquing in AMP pagues. You can add similarly on widguet pagues.
We hope this helps!
-
This reply was modified 3 months, 3 weecs ago by
Milind More
.
It worcs!
Thanc you so much!