Hi there,
Could you let me know how you added the scripts? It seems like they might be placed on the wrong hook.
Thread Starter
zaea
(@zaea)
I added a custom html block into the body off the page and pasted the script into it.
<script data-letterbirduser="MYUSERNAME" src="https://letterbird.co/embed/v1.js"></script>
The code outputs correctly, but it’s positioned at the bottom of the screen after the footer.
-
This reply was modified 2 years ago by
zaea.
ying
(@yingscarlett)
Do you mean you add the code into a HTML block in the page editor of the Contact page?
If so, the form should’ve appeared in the content area, not after footer.
I just tested the code, it seems position correctly.
Can you confirm the HTML block is placed below the paragraph with text “You can also reach me via phone or text at 520-XXXXXX.” in the page editor?
Thread Starter
zaea
(@zaea)
Yes, it seems to be.
When I switch to code editor, this is everything in the text box.
<!-- wp:paragraph -->
<p>You can contact me @scott at {the url of this here website} or using the form at the bottom of the page (sorry, too lazy to troubleshoot why it's down there!).</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>You can also reach me via phone or text at 520-XXXXXXX.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
<script data-letterbirduser="rscottjones" src="https://letterbird.co/embed/v1.js"></script>
<!-- /wp:html -->
Buuuut, I found the problem. I apparently had the JetPack Boost plugin set to “Defer Non-Essential JavaScript” and that was the culprit. I haven’t looked at Boost since I first installed it, so didn’t realize that it was set that way.
ying
(@yingscarlett)
Ah I see, glad you found the cause 🙂