-
randomtheo
Hi. My website is drbellhealth.com For my reviews, I would like to add this to the single post meta or have it show up right before the post content. When I put it in post meta, it pushes the right sidebar to the bottom of the page.
<strong>Availability:</strong> <a href="https://us.fullscript.com/welcome/drbell/store-start">In Stock</a></br> <i class="fa fa-shopping-cart" style="font-size:24px;color:green"></i>: <span class="rte" id="live_counter"></span> </div> <script> document.addEventListener('DOMContentLoaded', function() { function updateRandomNumber() { const randomNumber = Math.floor(Math.random() * 6) + 15; document.getElementById("live_counter").innerHTML = <code>${randomNumber} buyers are live on this product</code> } updateRandomNumber(); setInterval(updateRandomNumber, 10000); }); </script> -
Hi there,
in your code there is a closing div ie.
</div>but there is no opening div.
Can you remove the</div>? -
randomtheo
Thank you!!! that worked.
-
Glad to be of help
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.