Archived topic
Help needed with sign-up form
3 replies · Started by Janani on November 20, 2022
Dear Team
I have a sign-up form just above the footer of my site, but you would be unable to see it now because the website developer had pasted the code in the php text of your theme. And so, whenever the theme gets updated, the sign up form disappears! Can you help me make it a global footer in all the pages of the website without affecting the theme? I use the code-snippets plugin and am also comfortable using the elements. I am giving the link to the code which my developer pasted wrongly, and its all gone now. Where should I paste this code now, so that I can get back the sign up form on my website? Please note, I am a non-technical person, so kindly give me instructions in a simple lay-man language so that I can do it myself.
Thanks and regards,
Hi Janani,
I #2, is this a custom stylesheet? Has your developer enqueued this? If not, he's just adding it manually which isn't optimal because it won't be read by optimization plugins. If it's just a little CSS, it might be okay though.
For Step #2:
1. Go to Appearance > Elements.
2. Create a Hook Element.
3. Hook it to wp_head.
4. Add the code.
5. Set the display rule location to your preference. For instance, entire site.
For Step #3:
1. Go to Appearance > Elements.
2. Create another Hook Element.
3. Hook it to wp_footer.
4. Add the code.
5. Set the display rules as well.
Reference: https://docs.generatepress.com/article/hooks-element-overview/
Dear Fernando
Thank you for this, yes now the sign-up form is showing up. Thank you once again.
You're welcome Janani!