Google Trends embed graphs not working in WordPress 6.2.2
-
Post with adding more than one Google Trend codes, Page displays error, only one chart is displayed well.
WordPress: V.6.2.2
Block: post/ custom html
CODE:
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/3349_RC01/embed_loader.js"></script> <script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"wordpress","geo":"","time":"now 1-d"}],"category":0,"property":""}, {"exploreQuery":"date=now%201-d&q=wordpress&hl=en-GB","guestPath":"https://trends.google.com:443/trends/embed/"}); </script>
In Edit, works well
In Preview/ Publish, error
-
This topic was modified 1 year, 7 months ago by
adamxing.
-
This topic was modified 1 year, 7 months ago by
-
Please open the JavaScript Console and then load your site and post any error messages that you are seeing.
DevTools failed to load source map: Could not load content for https://img1.wsimg.com/tcc/tccl.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://dongou.tech/wp-content/themes/bifrost/assets/scripts/maps/theia-sticky-sidebar.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://img1.wsimg.com/traffic-assets/js/tti.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://dongou.tech/wp-content/themes/bifrost/assets/scripts/typed.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILUREHi, it seems that the theme bifrost is causing these problems. It’s best to contact the theme’s developers.
THANKS
i know how to fix it now
the first block , full embed code
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/3349_RC01/embed_loader.js"></script> <script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"wordpress","geo":"","time":"now 1-d"}],"category":0,"property":""}, {"exploreQuery":"date=now%201-d&q=wordpress&hl=en-GB","guestPath":"https://trends.google.com:443/trends/embed/"}); </script>
the second, third…. block, delete “<script type=”text/javascript” src=”https://ssl.gstatic.com/trends_nrtr/3349_RC01/embed_loader.js”></script> <script type=”text/javascript”>”, just keep:
<script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"wordpress","geo":"","time":"now 1-d"}],"category":0,"property":""}, {"exploreQuery":"date=now%201-d&q=wordpress&hl=en-GB","guestPath":"https://trends.google.com:443/trends/embed/"}); </script>
Although the display is not normal when editing the status, the preview and publish is ok.
it seems that one post just supports one “<script type=”text/javascript” src=”https://ssl.gstatic.com/trends_nrtr/3349_RC01/embed_loader.js”></script> <script type=”text/javascript”>”
- The topic ‘Google Trends embed graphs not working in WordPress 6.2.2’ is closed to new replies.