Site logo

Archived topic

Anchor to footer widget

1 reply · Started by Duncan on December 7, 2021

Viewing posts 1–2 of 2

I would like to have a link from the topbar to a contact form in the footer widget area. I am using contact form 7 for the forms as I needed sendinblue integration.

I inspected the form and was able to find the ID for the form and using #ID (#wpcf7-f7950-o2 in my case) works on the home page but doesn't seem to work on the sub pages. I have put the link to the form on the homepage (/#wpcf7-f7950-o2), which works, but the user then is not on the page they started on. The form has the same ID on every page, it just seems to be the subpage part of the URL that breaks the link.

Is there some way to link to the ID of the footer widget or something so that it works on every page or is it just the nature of the way the footer is coded that you can't link to the footer on subpages?

Hopefully that makes sense! Thanks

Hi Duncan,

Try using #footer-widgets as the anchor.

You can also add a CSS class smooth-scroll to the click here link so that it will scroll to the bottom of the page.

Let me know if this helps :)

This archived topic is closed to new replies.