Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

HTML in Single post meta moves right sidebar

  • 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> ?

  • 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.