Please assist, when I embed the Google trends code into Weweb -
The display takes over my screen and all my other elements disappear, including the sidemenu. What am I doing wrong?
Please assist, when I embed the Google trends code into Weweb -
The display takes over my screen and all my other elements disappear, including the sidemenu. What am I doing wrong?
Hi @lebom326
Can you try wrapping the HTML with a container div and set its height and width? Like <div style="width: 100%; max-width: 800px;>
Hi, thank you for the feedback. I tried wrapping the HTML element in a container div but, there is no use.
sorry I meant wrapping the <script>
tag with a div in the HTML element directly, not adding a flexbox. Something like:
<div style="width: 100%; max-width: 800px; height: 400px; position: relative; overflow: hidden;">
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/3940_RC01/embed_loader.js"></script>
<script type="text/javascript">
trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"seo","geo":"","time":"today 5-y"}]});
</script>
</div>
Can you try wrapping within an iframe? It works for me
<div style="width: 500px; height: 400px;">
<iframe
style="width: 100%; height: 100%;"
src="https://trends.google.com/trends/embed/explore/TIMESERIES?
...
</iframe>
</div>